I need to strip out extra attributes from an xml file. I have a very basic idea of how to add extra attributes, since that's what most tutorials show, but I don't know how to remove attributes.
I need to convert this:
To this:
I need to convert this:
Code:
- <Page01_a>
- <body xmlns:xfa="[URL unfurl="true"]http://www.xfa.org/schema/xfa-data/1.0/"[/URL] xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1">
- <p style="margin-top:0pt;margin-bottom:0pt;text-valign:middle;font-family:'Myriad Pro';font-size:10pt">
Here
<span style="xfa-spacerun:yes"> </span>
<span style="font-style:italic">is</span>
...
</Page01_a>
To this:
Code:
<Page01_a>Here <italic>is</italic></Page01_a>