This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant problme

 
bob khan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a xml file that i want to change some attributes with specified elements. for example this is my xml file

<root>
<change name="babak" family="xxx"/>
<changeOne name="yyyy" family="kkkk"/>
</root>

i want to change the (change)element and (name) attribute babak--->kabab

first how can i pars the xml file with ant and change my specified attribute?
i need code example. tanx so much
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"azzzzz bazzzzzz " please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bob,

You can use property ${} or @@ style replacement in ANT. Please see their documentation
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic