Hello,
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
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Xmltask-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xmltask-users