How do I merge adjacent SPAN tags in an XML document?

Anaebribbor

New Member
We have some XML documents that contain a bit of XHTML in bits. The HTML has come out of MS Word or something and there's lots of adjacent SPAN tags that are exactly the same, except for their content.I've been loading the XML into powershell and comparing adjacent nodes and so on but this seems laborious and has a high potential for errors. Is there a smart way to do this via XML DOM or HTML DOM?
 
Back
Top