Re: Stripping Contents from XML

2011-11-28 Thread Bruce Atherton
If I understand you correctly, you want to take a file that looks to contain the output from an Ant run and extract valid XML from it, is that correct? If so, there are two parts you need in a filterchain. The first is something to strip the "[api] " tags from the beginning of each line.

RE: Stripping Contents from XML

2011-11-28 Thread Brian Agnew
Check out XMLTask for XML processing in Ant. http://www.oopsconsultancy.com/software/xmltask Brian On Mon, November 28, 2011 13:15, Vinodh Kumar wrote: > My final output after stripping will be an XML. I tried using regex but > not > able to achieve. > > --Vinodh Kumar > > -- > View this message

RE: Stripping Contents from XML

2011-11-28 Thread Vinodh Kumar
My final output after stripping will be an XML. I tried using regex but not able to achieve. --Vinodh Kumar -- View this message in context: http://ant.1045680.n5.nabble.com/Stripping-Contents-from-XML-tp5027993p5028824.html Sent from the Ant - Users mailing list archive at Nabble.com.

RE: Stripping Contents from XML

2011-11-28 Thread Emma Burrows
Hello. Is your input an actual XML file or is it a text file containing all the "[api]" and extra text as indicated? If it's pure text, you'll probably need to investigate using to remove the unwanted text, using a regex pattern to match all the text you don't want - or all the text you do wan