ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Muller, Anthony" <anthony.mul...@sap.com>
Subject RE: How to read an XML file and extract values for the attributes using ANT script
Date Fri, 25 Jul 2008 10:21:33 GMT
I remember you can't do this directly with Ant, but you have to use an extension...

Look at: XMLTask (xmltask-v1.15.1.jar)

Anthony M√úLLER



-----Original Message-----
From: Alpesh Vesuwala [mailto:alpeshvesuwala@yahoo.co.in] 
Sent: Friday, July 25, 2008 11:37 AM
To: user@ant.apache.org
Subject: How to read an XML file and extract values for the attributes using ANT script


Hello Friends,

I have an XML file to read from it and extract values of some attributes.
These extracted values can further processed by the ANT script.

The Sample XML File is:

<TITLE>
	<ABC>abc</ABC>
	<XYZ>xyz</XYZ>
</TITLE>

I want to extract 'abc' and 'xyz' from this sample code. Please help me out,
how can I do that?

Thanks Alpesh
-- 
View this message in context: http://www.nabble.com/How-to-read-an-XML-file-and-extract-values-for-the-attributes-using-ANT-script-tp18648408p18648408.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message