M
marfi95
I'm trying to iterate through a list of child nodes. It seems like to
get the text value of the node, you have to do a
node->getFirstChild()->getNodeValue. This being said, there is a
hasChildNodes method, but if I use that, it includes the "text" nodes
also, which I don't want ot include.
if this is my xml:
<A>
<B></B>
<C></C>
</A>
if I have a node for B, I thought getNextSibling would return C, but it
didn't. it returned #text.
confused.
get the text value of the node, you have to do a
node->getFirstChild()->getNodeValue. This being said, there is a
hasChildNodes method, but if I use that, it includes the "text" nodes
also, which I don't want ot include.
if this is my xml:
<A>
<B></B>
<C></C>
</A>
if I have a node for B, I thought getNextSibling would return C, but it
didn't. it returned #text.
confused.