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.
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
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.
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
Hi,
Can I know how to achieve with ant? Basically I need xml tag content from
[api] to [api] as output
Any hint?
* [api] DBTime is 2028005710
[api] Invoking api: getServerList, expectedtofail: false
[api]
[api]
[api]
...
[api] *
to
*