TesterNo1
10 years agoContributor
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.