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

2008-07-31 Thread Alpesh Vesuwala
SUPERB =) I was trying, / :rules: XYZ/text()"/> / :rules: ABC/text()"/> @{xyz} = @{abc} Thanks a lot, Alpesh -- View this message in context: http://www.nabble.com/How-to-read-an-XML-fil

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

2008-07-31 Thread Alpesh Vesuwala
Hi, Thanks for your quick response. The solution is fine but not working when my XML file looks like this: 123 456 987 654 147 258 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 wit

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

2008-07-31 Thread Alpesh Vesuwala
Hey one more twist has come with my requirement. the above solution of xmltask requires separate 'call' to loop through 'XYZ' and 'ABC' Resulting in, I have first all the values of XYZ and then for ABC. and I want values for both together. e.g. abc xyz 123 456

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

2008-07-30 Thread Alpesh Vesuwala
Thanks Brian, It works as per what I expected. :drunk: Thank you very much, 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-tp18648408p18732640.html Sent from the Ant - Users mailing list archive at Na

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

2008-07-30 Thread Alpesh Vesuwala
Thank you all for your valuable inputs. I tried 'xmltask' for my solution and it is working really well. :jumping: I really appreciate your kind responses. =) Please clarify one more doubt, I may have multiple tags and they can be random. For example, abc xyz 123

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

2008-07-25 Thread Alpesh Vesuwala
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 t