If you want to use XMLTask (and your input is XML - the below doesn't look
quite right), the following will work:

<replace path="//...xpath to node.../@value" withText="value to insert"/>

http://www.oopsconsultancy.com/software/xmltask/

Brian


On Fri, October 12, 2007 08:22, [EMAIL PROTECTED] wrote:
> Use a template which you copy and modify.
> See <copy>, <filter> and <filterchain>
> especially in the <copy> manual the example
> "Copy a set of files to a directory, replacing @TITLE@ with Foo Bar in all
> files."
>
> Jan
>
>>-----Ursprüngliche Nachricht-----
>>Von: Dharmesh Vyas [mailto:[EMAIL PROTECTED]
>>Gesendet: Donnerstag, 11. Oktober 2007 14:48
>>An: Ant Users List
>>Betreff: Using Replace
>>
>> Hello Group,
>>
>>I have a configuration file for running my test scripts. It's
>>in this format
>><FieldName="TestCases" value="A.xml"/>
>>I need to change the values of A.xml to B.xml or C.xml or
>>D.xml. Previously
>>I used to know the order of it so I used to have token A.xml
>>and replace it
>>with B.xml, after B to C and likewise.
>>But right now I am in a condition where I will require to
>>change A.xml to
>>anyvalue. I won't be knowing what value will this configuration file be
>>holding (Prob. A.xml, or B.xml etc.) before replacing that to any other
>>value.
>>
>>Please let me know if there is a way to implement this.
>>
>>Thanks in advance,
>>- Dharmesh.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to