Well, that's slightly different. The follwoing will illustrate what you
need..
<xmltask source="title.xml">
<call path="//TITLE" >
<param name="xyz" path="XYZ/text()"/>
<param name="abc" path="ABC/text()"/>
<actions>
<echo>@{xyz} = @{abc}</echo>
</actions>
</call>
</xmltask>
Brian
On Thu, July 31, 2008 10:21, Alpesh Vesuwala wrote:
>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]