Hi Matthias,

You cannot get the "value" of an Element node that way.  I'd suggest a good
book that explains the DOM, or a search through the mail archives.

By the way, don't forget to do this:

   delete [] test;
   delete [] test2;

or you'll have a memory leak;

Dave



                                                                                       
   
                    MKrefeld@heyd                                                      
   
                    e.de                 To:     [EMAIL PROTECTED]           
   
                                         cc:     (bcc: David N Bertoni/CAM/Lotus)      
   
                    10/30/2001           Subject:     DOM_Node::getNodeValue           
   
                    10:45 AM                                                           
   
                    Please                                                             
   
                    respond to                                                         
   
                    xerces-c-dev                                                       
   
                                                                                       
   
                                                                                       
   



Hi,
please have a look at this code snippet:
DOM_Node node =childs.item(i);
DOM_Element    element;
if (node.getNodeType() == DOM_Node::ELEMENT_NODE)
   element = (DOM_Element &) node;
char* test = element.getNodeName().transcode();
char* test2 = element.getNodeValue().transcode();

I always get the Nodename, but never the Node-Value (
NodeImpl::getNodeValue() returns Null).

Can you help me?


Thanks a lot!!




Mit freundlichen Gr��en Matthias Krefeld

 <<Krefeld, Matthias.vcf>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to