Click to See Complete Forum and Search --> : newbie question regarding node values in MSXML in VC++


garumphul
July 2nd, 2001, 12:11 PM
I'm using version 3 of the MSXML parser. I've got an XML file that has a bunch of nodes and values. Pretty standard. Some nodes are strings, and some are integers.

Now, I was under the impression that if I got the value of a node, the returned variant would tell me whether it was a string or an integer. I'm using get_nodeTypedValue() and it seems to return my numeric tags as strings (e.g. a variant of type VT_BSTR with a value of "452").

Is this just what happens, or am I missing out something?

Thanks in advance, and apologies for what is most probably a *very* silly question for most of you.

psutrave
December 18th, 2001, 06:54 PM
I remember reading some where but I am sure it always gives you in VT_BSTR

Green_Beret
December 18th, 2001, 11:35 PM
Yes , because the entire XML document is a string and hence it's individual parts are also strings i.e., of type VT_BSTR.
You may convert the string values to numeric after extracting them.


Regards,
The Beret.