ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alpesh Vesuwala <alpeshvesuw...@yahoo.co.in>
Subject Re: How to read an XML file and extract values for the attributes using ANT script
Date Thu, 31 Jul 2008 09:21:30 GMT

Hi,

Thanks for your quick response.
The solution is fine but not working when my XML file looks like this:

<TITLE>
     <XYZ>123</XYZ>
     <ABC>456</ABC>
</TITLE>
<TITLE>
     <XYZ>987</XYZ>
     <ABC>654</ABC>
</TITLE>
<TITLE>
     <XYZ>147</XYZ>
     <ABC>258</ABC>
</TITLE>

Thanks and Regards,
Alpesh


You should be able to do that with a param to call. i.e. identify the node
you're interested in with:

<call path="....">

and specify a param:

 questions, which may
be a better forum going forwards.

Brian
-- 
View this message in context: http://www.nabble.com/How-to-read-an-XML-file-and-extract-values-for-the-attributes-using-ANT-script-tp18648408p18750721.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


Mime
View raw message