Jump to content
Evgeniy.co.il

What is the the most effective Xml

Recommended Posts

i have Xml that looks something like this: How can i filtering this xml for cb="1" ? I know only xpath & DataSet are ways for filtering this xml:
<root>
<node id="1">
<node cb="0"></node>
<node cb="0"></node>
</node>
<node id="2">
<node id="21" cb="0"></node>
<node id="22" cb="1"></node>
</node>
</root>
What the most efficient way to make it like (filter by cb=1):
enter code here
<root>
<node id="2">
<node id="22" cb="1"></node>
</node>
</root>
With regards, Evgeniy Vinnikov

 

Share this post


Link to post
Share on other sites

Your welcome. And thank you for the like!Programming is an art, so there's many ways this could have been done. It pay to span time with the language, via either reading on it, or playing with it.Happy programming! ;-)

Edited by L8V2L

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...