ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » how i can traverse the xml path dynamically in antscript?.

Post new topic  Reply to topic
 how i can traverse the xml path dynamically in antscript?. « View previous topic :: View next topic » 
Author Message
mail2me.venky
PostPosted: Thu Jan 24, 2013 1:52 am    Post subject: how i can traverse the xml path dynamically in antscript?. Reply with quote

Apprentice

Joined: 11 May 2012
Posts: 26

Could ANYONE tell me, how i can traverse the xml path dynamically in antscript?. If the parent tag is given from command line arguement. with this , i have to form child tag path ..access the xml file , to pull the value form the formed xml tag path.

ant -DId=abc

Given file is
*<abc>
<Age>16</Age>
</abc>*

is this correct ?

*<echo>${${Id}.Age}</echo>* to give output 16.


Please help me.

Thanks
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Thu Jan 24, 2013 6:14 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You could call out to an X-Path command processor.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mail2me.venky
PostPosted: Thu Jan 24, 2013 7:18 am    Post subject: Reply with quote

Apprentice

Joined: 11 May 2012
Posts: 26

Thanks a lot.

Can you give sample example code .It will be very helpful.

Bye
Venky
Back to top
View user's profile Send private message Send e-mail
lancelotlinc
PostPosted: Thu Jan 24, 2013 7:25 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

mail2me.venky wrote:
Thanks a lot.

Can you give sample example code .It will be very helpful.

Bye
Venky


http://www.w3schools.com/xpath/default.asp
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » how i can traverse the xml path dynamically in antscript?.
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.