Why can't you use replace ? You have an xpath to each value, don't you ?
e.g. /web-app/servlet/init-param[1]/param-value/text() and
/web-app/servlet/init-param[2]/param-value/text() (in a simple form)
Brian
On 13/7/09 12:34, Praveen Kumar Kale wrote:
How to modify the web.xml using build.xml.
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="" version="2.4" xmlns=" " xmlns:xsi=" "
xsi:schemaLocation=" ">
<display-name>HubWeb</display-name>
<listener>
<listener-class>com.fourcs.clm.sh.core.ActiveUsersListener</listener-class>
</listener>
<*servlet*>
<display-name>xxxxxxxx</display-name>
<servlet-name> xxxxxxxx </servlet-name>
<servlet-class> </servlet-class>
<*init-param*>
<param-name>ConfigDir</param-name>
<param-value>10000</param-value>
</* init-param* >
<init-param>
<param-name>assets</param-name>
<param-value>D:/Development/qqq/eee/rrr/ configuration.xml</param-value>
</init-param>
<* init-param* >
<param-name>Registry</param-name>
<param-value>11111</param-value>
</* init-param* >
<init-param>
<param-name>registry</param-name>
<param-value>ConfigAssetsPath= D:/Development/qqq/eee/rrr/
configuration.xml </param- value>
</init-param>
<load-on-startup>1</load-on-startup>
</ *servlet* >
Here I want to change the *<*param-value*>10000</*param-value*> * with
*<*param-value*>10000111</*param-value*> and
*<param-value>11111</param-value>
With <param-value>11111000</param-value>.
Here I cannot use Replace path .
Is there any other solution to change these param values using xmlTask.
Thanks
Praveen Kale
------------------------------------------------------------------------
------------------------------------------------------------------------------
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
--
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