In theory, I have this XML file (and be gentle, I'm not experienced with XML).
<root>
<data>
<date>
<start/>
<end></end>
</date>
<time>12:00</time>
</data>
</root>
As you can see, there are a fair few redundant elements. What I'd like to do is clean up this XML with an XSLT, by getting rid of any elements that have no attributes or values.
So the above xml would then be:
<root>
<data>
<time>12:00</time>
</data>
</root>
The <start/> element and <end></end> element would be ripped out. And because the <date>.. element would subsequently have no child nodes, this needs to go to.
If that make's sense, how do I do this?!
Thanks
------------------------
Hit any User to continue
<root>
<data>
<date>
<start/>
<end></end>
</date>
<time>12:00</time>
</data>
</root>
As you can see, there are a fair few redundant elements. What I'd like to do is clean up this XML with an XSLT, by getting rid of any elements that have no attributes or values.
So the above xml would then be:
<root>
<data>
<time>12:00</time>
</data>
</root>
The <start/> element and <end></end> element would be ripped out. And because the <date>.. element would subsequently have no child nodes, this needs to go to.
If that make's sense, how do I do this?!
Thanks
------------------------
Hit any User to continue