Thanks Brian... Its working.
Thanks,
Praveen
From: Brian Agnew [mailto:br...@oopsconsultancy.com]
Sent: Thursday, July 09, 2009 7:31 PM
To: Praveen Kumar Kale
Cc: xmltask-users@lists.sourceforge.net
Subject: Re: [Xmltask-users] xml Task list
Your path is:
Breakfast_menu/food/foodcourt/KFC/description
so you need to identify the text node in XPath using the above
/Breakfast_menu/food/foodcourt/KFC/description/text()
and then use something like:
<replace path="/Breakfast_menu/food/foodcourt/KFC/description/text()"
withText="Your new text"/>
Brian
On 9/7/09 14:01, Praveen Kumar Kale wrote:
I try to replace but am not getting , the exact scenario is like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="simple.xsl"?>
<breakfast_menu>
<food>
<foodcourt>
<KFC>
<name>Belgian Waffles</name>
<price>$5.95</price>
<description>/Burger/Pizza</description>
<calories>650</calories>
<KFC>
</foodCourt>
</food>
</breakfast_menu>
Path : Breakfast_menu/food/foodcourt/KFC/description/"Burger"/Pizza
Here I want to replace the Burger with Hotdogs.
We are having Multiple configuration files almost in all configuration.xml, am
manually changing the path before running the Build.xml file.
Is there any solution for automating these Change in Build.xml
Thanks,
Praveen
From: Brian Agnew [mailto:br...@oopsconsultancy.com]
Sent: Thursday, July 09, 2009 5:24 PM
To: Praveen Kumar Kale
Cc:
xmltask-users@lists.sourceforge.net<mailto:xmltask-users@lists.sourceforge.net>
Subject: Re: [Xmltask-users] xml Task list
Use the <rename> function if you want the element changing e.g.
<rename path="/abc" to="xyz"/>
Otherwise use the copy/paste mechanism to copy to a property, and some regexp
function to change that/write to a new property, and then <insert> to put it
back. <xmltask> currently doesn't have a 'change-in-place' function (although
it could do, nobody's asked for it).
Brian
Praveen Kumar Kale wrote:
Thanks for your Quick response Brain.
I have a Question.
If I want to modify the Xml Catalog value With some other value How can I
modify.
e.g. <xxxxxx>/abc/def/</xxxxxxxx>
I want to replace the 'abc' valve with 'xyz'.
Could you please help me ..
Praveen
From: Brian Agnew [mailto:br...@oopsconsultancy.com]
Sent: Thursday, July 09, 2009 5:02 PM
To: Praveen Kumar Kale
Cc:
xmltask-users@lists.sourceforge.net<mailto:xmltask-users@lists.sourceforge.net>
Subject: Re: [Xmltask-users] xml Task list
? If you mean the XMLTask jar, you can get it from
http://www.oopsconsultancy.com/software/xmltask
Brian
Praveen Kumar Kale wrote:
Can I get the all the XML Task list which we can use in Build .xml file
Thanks,
Praveen
________________________________
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
________________________________
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net<mailto:Xmltask-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/xmltask-users
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
________________________________
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
________________________________
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net<mailto:Xmltask-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/xmltask-users
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
________________________________
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
________________________________
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net<mailto:Xmltask-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/xmltask-users
--
Brian Agnew http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users