c++ - MSXML2: How can I get value of a node? -


i have node

msxml2::ixmldomnodeptr node;     

node->getxml() returns "<level3>333<level4 atribute="444"><level5>555<level6>666</level6></level5></level4></level3>"

node->gettext(); returns "333555666"

node->getnodevalue() throws exception if node not attribute.

how can value 333 ???

you have walk children of node have in hand - can list using childnodes after checking node has children of course, can use gettext() extract individual element texts.

it's quite painful code msxml dom, in experience. glad see using built-in smart pointers, anyway.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -