I have a xml:
<root> <tag1> <tag2 id="111" pid="000" name="name1"> <tag3>xxx</tag3> ...more tags... </tag2> <tag2 id="222" nid="111" name="name2"> <tag3>yyy</tag3> ...more tags... </tag2> </tag1> ...more tags... </root>
And a txt file (name.txt) with list of name values:
name1 name3 ....
Is it possible to have a xslt to read from name.txt, delete the tag2 with name attribute matches list in name.txt. So the output of xml would be:
<root> <tag1> <tag2 id="222" nid="111" name="name2"> <tag3>yyy</tag3> ...more tags... </tag2> </tag1> ...more tags... </root>
Cheers, Li
No comments:
Post a Comment