is there a way to remove a node that is wrapping a few other nodes, but keeping the containing nodes?
I need to remove all the instances of “AreaImageCaption”, but need to keep “image” and “caption”
<products>
<product>
<name>100</name>
<AreaImageCaption>
<image>image1</image>
<caption>caption1</caption>
</AreaImageCaption>
<AreaImageCaption>
<image>image2</image>
<caption>caption2</caption>
</AreaImageCaption>
</product>
</products>
Thanks
Try this
I’m trying to add all child elements from
<AreaImageCaption />and add it to it’s parent and then remove the<AreaImageCaption />element.