cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove a specific node and its child

Highlighted
Contributor

How to remove a specific node and its child

 <?xml version="1.0"?>
<faq>
<item>
<q>Question 1</q>
<a>Answer 1</a>
</item>

<item>
<q>Question 2</q>
<a>Answer 2</a>
</item>

<item>
<q>Question 4</q>
<a>Answer 4</a>
</item>

</faq>

 

Hi all,

 

My requirement is to remove only two <item > tags and the child nodes under it 

 

has anyone tried it before 

?

 

Thank you.

 

1 REPLY 1
Highlighted
Community Hero

Re: How to remove a specific node and its child

what do you mean by "remove only two <item>"? exactly? and which two?


Regards,
Rao.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors