Paul Lalonde wrote:
I have a chunk of code that returns a NodeRefList from a XPathEvaluator, and I'm stepping over the list getting an XalanNode * for each element. I can print the node name, I can get its attributes and print their values, but XalanNode::getNodeValue() just seems to return empty strings.
The code below consistently generates the output:

...



Is there any obvious reason why nd->getNodeValue() isn't returning me my data?


An element has no "value" of its own. In this case, the value is in the text node children, so you would need to iterate through them.

Dave

Reply via email to