Discussion:
IXMLDOMNode Interface
(too old to reply)
Sridhar Gurivireddy
2005-10-11 01:11:56 UTC
Permalink
Then how can i read XML node value?

For example if in the XML file is like

<result> pass <result>

After I get reference to the <result> element, I am calling
get_nodeValue to get the value of "result" element, which is "pass"

If get_nodeValue is expected to return VT_NULL, what other API can I
use?

Regards,
Sridhar Gurivireddy

*** Sent via Developersdex http://www.developersdex.com ***
Julian F. Reschke
2005-10-11 07:10:46 UTC
Permalink
Post by Sridhar Gurivireddy
Then how can i read XML node value?
For example if in the XML file is like
<result> pass <result>
After I get reference to the <result> element, I am calling
get_nodeValue to get the value of "result" element, which is "pass"
If get_nodeValue is expected to return VT_NULL, what other API can I
use?
The *value* for the DOM node element for "<result>" is null. You'll need
to access the child nodes of type text, and then concatenate their
values (if more than one). Alternatively, in MSXML's DOM implementation,
you can also use the "text" property which will do this for you.

Best regards, Julian

Loading...