Wednesday, 13 April 2016

XML : Omit child nodes when selecting a node

How do I select nodes without including any child nodes in my select?

For example:

   <Result>a    <subresult>1    </subresult>   </Result>    

From the above code when I select the result node I get the following output:

a1

I am interested in the following output:

a

No comments:

Post a Comment