You should be doing a getFirstChild() for the element1 node, then a getNodeValue() on the child. The text is a child of the element1 node, not a sibling. -----Original Message----- From: bertrai [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 1:31 AM To: '[EMAIL PROTECTED]' Subject: Problem with retrieving the value of a Node which type is TEXT_NODE I am using Xerces-c whith Microsoft Visual C++ 6.0 and I am not able to retrieve the nodeValue for a Node, which type is TEXT_NODE, after parsing an xml file. Here is an exemple: a line of the xml file is: <element1>Element1</element1> If the current node is the <element1> Node and then I do getNextNextSibling(), I have got the value "#text" for getNodeName() and " " (instead of "Element1" ?) for getNodeValue(). My quesiton is how can I retrive the string "Element1" ? I didn't found any solution to my problem neither in the documentation or in the FAQ, that's why I am writting to you. Regards Corinne GUIBERT --------------------------------------------------------------------- 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]
