dcsimg
How to read an XML file and extract values for the attributes using ANT script
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alpesh_Vesuwala
Posted On:   Tuesday, July 22, 2008 08:16 AM

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:



			

abc
xyz




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



Thanks
Alpesh

Re: How to read an XML file and extract values for the attributes using ANT script

Posted By:   Robin_Perrot  
Posted On:   Tuesday, August 12, 2008 05:44 AM

Hello !



You juste have to declare your XML file in a target of your Ant script with the task "xmlproperty"...then you will be able to access to your xml tags like a property ... read this :

























Have fun



Robin
About | Sitemap | Contact