Hi Jo - I see from this thread that you've found what you needed. Good news!
To clarify, xmltask is supported and the mailing list is usually active. The majority of questions are XPath-related and as such can answered in any XPath-savvy forum. I'm travelling at the moment so support can be a bit difficult at times, however. Brian Agnew http://www.oopsconsultancy.com +44 7720 397526 On 22 Nov 2010, at 20:05, Jo Support <jo.supp...@gmail.com> wrote: > Hello people, > > I'm sorry to write here about a third party library, but it seems that > official xmlTask mailing list is off (no messages since subscription, > three days ago), and there are no news about Oops Consultancy since > September 2009. So I'll try to quest here, hoping for someone to be > able to answer me. By the way, if you know a better tool to manipulate > xml files by Ant, I'll appreciate suggestions very much. > > In my house I need to change the floor type of every room with > tapestry red from whatever they are to terracotta. > This is my house now: > > <house> > <room> > <name>living</name> > <tapestry>red</tapestry> > <floor>wood</floor> > </room> > <room> > <name>dining</name> > <tapestry>red</tapestry> > <floor>marble</floor> > </room> > <room> > <name>bed</name> > <tapestry>yellow</tapestry> > <floor>wood</floor> > </room> > </house> > > And this is my house as I'd like it to be: > > <house> > <room> > <name>living</name> > <tapestry>red</tapestry> > <floor>terracotta</floor> > </room> > <room> > <name>dining</name> > <tapestry>red</tapestry> > <floor>terracotta</floor> > </room> > <room> > <name>bed</name> > <tapestry>yellow</tapestry> > <floor>wood</floor> > </room> > </house> > > I didn't find the way using XmlTask to set up a condition on tags and > not attributes. > I've tried something like this: > > <replace path="/house/ro...@tapestry='red']/@floor" withText="terracotta"/> > > but it doesn't seem to handle tags like attributes, and I found > nothing about it on documentation at > http://www.oopsconsultancy.com/software/xmltask/ . > > Any suggestion? > Thanks in advance, > > Jo > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org