How can one remove an XML node and all references to it using an ant script?

BruimaKima

New Member
I have an xml file that has nodes which I need to remove, specifically, all nodes with \[code\]type="url"\[/code\]. However, I also need to remove references to them in a different part of the xml file. the xml file basically looks like this:\[code\]<view> <views> <view id="f2306260-9bd6-11e2-9e96-0800200c9a66" name="INDEXCOMP1" type="url" url="http://192.168.1.9:8080/Birt/"/> </views> <category-views> <category-view category-id="dde62b50-9a4b-11e2-9e96-0800200c9a66" icon="" id="00fb076b-e858-48cb-b48a-a0b9f6293fa2" name="External Code Lists"> <view idref="f2306260-9bd6-11e2-9e96-0800200c9a66"/> </category-view> </category-view><view>\[/code\]We are using ant xmltask to do other manipulations on the file, but I haven't been able to bend it to do my bidding.
 
Top