ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Agnew <br...@oopsconsultancy.com>
Subject Re: Looking for task to add text to file.
Date Thu, 28 Apr 2005 14:13:29 GMT
If you're modifying XML then I'd strongly suggest using xmltask (I'm 
biased here!) or equivalent.

Why ? A simple text search/replace doesn't respect the character 
encoding conventions within your XML, and doesn't respect entity 
encoding. e.g. you want to insert the text "x < y". If you do that 
directly using a simple text search/replace then you'll end up with 
invalid XML.

Brian

Nir Geier wrote:

>i didnt fin teh :
>
>2) using <tail> and <head> filters while <move>ing
>   - extract part before
>   - extract part after
>   using <concat> to combine before, new and after parts
>
>you mentioned before.
>
>where are the tail and head? (which task?)
>
>Nir.
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>  
>

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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message