You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Day, Evan" <Ev...@SUMMITSITE.COM> on 2001/04/19 18:50:37 UTC
RE: Problem with retrieving the value of a Node which type is TE
XT_NODE
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:fbertrai@sopra.com]
Sent: Thursday, April 19, 2001 1:31 AM
To: 'xerces-c-dev@xml.apache.org'
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org