I am working on replace xml node. I have problem in remove parent node with inner node itself.
I want to remove parent node with few inner node and retain some other inner nodes.
The Source of the xml string:
<root>
***<bPoint id="1" >
<bLabel>
<text></text>
</bLabel>
<content src="p112" />***
<bPoint id="2">
<bLabel>
<text>xxx</text>
</bLabel>
<content src="p1123" />
</bPoint>
***</bPoint>***
<bPoint id="bPoint-2" >
<bLabel>
<text>xxx</text>
</bLabel>
<content src="p1123" />
</bPoint>
</root>
My Output will be
<root>
<bPoint id="2">
<bLabel>
<text>xxx</text>
</bLabel>
<content src="p1123" />
</bPoint>
<bPoint id="bPoint-2" >
<bLabel>
<text>xxx</text>
</bLabel>
<content src="p1123" />
</bPoint>
</root>
Any one assist me?
Thanks in advance.