Monday, 15 September 2014

c++ - XML - SelectNodes - How to get nodes with attribute with some value (MFC) -



c++ - XML - SelectNodes - How to get nodes with attribute with some value (MFC) -

i working in mfc

i nodes xml , attribute value value should not null, , should not select node if no attribute present

<node att="sss"> - should selected <node att="sd342ss"> - should selected <node att=""> - empty value should not selected <node > - not having attribute should not selected

how create xpath this?

given construction like:

<root> <node att="sss" /> <node att="sd342ss" /> <node att="" /> <node /> </root>

your xpath select nodes have attribute , attribute's value not empty like:

"//node[@att , string-length(@att) > 0]"

c++ xml visual-c++ mfc msxml

No comments:

Post a Comment