-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

So now I'm further confused - I tried calling XalanNode::getChildren (), but recieved an XalanDOMException with value 9 = NOT_SUPPORTED_ERR.
Clearly I'm asking for the wrong thing.  What's the right thing?

Paul

On 12-Sep-06, at 12:28 PM, David Bertoni wrote:

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


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFFBwwzr7+oA6AsvAkRAp6pAKDsTRgy9s+hWl8PYHy4+9lmMk5YlgCgrE8s
dvsdnMvsMKYirjTKZBJckac=
=cWKn
-----END PGP SIGNATURE-----

Reply via email to