RE: AW: Modify xml file

2009-01-21 Thread Brian Agnew
tech-solutions.com] >>> Sent: Wednesday, January 21, 2009 2:36 PM >>> To: Ant Users List >>> Subject: Re: AW: Modify xml file >>> >>> Just as a followup, I do a similar thing as #3 in a project I am >>> ANT'ing, and if you are not replacing in

Re: AW: Modify xml file

2009-01-21 Thread Blaine Simpson
My favorite way is to use unicode escapes. Not only does it work for every character you will need (visible or not visible), but unicode escapes work for all XML, properties, and even Java source files (using different syntax, as explained below). For Ant build files: "&#" + 2_DIGIT_DECIMAL_NUMBE

RE: AW: Modify xml file

2009-01-21 Thread Alec Fernandez
rian Stephenson [mailto:bstephen...@thortech-solutions.com] >> Sent: Wednesday, January 21, 2009 2:36 PM >> To: Ant Users List >> Subject: Re: AW: Modify xml file >> >> Just as a followup, I do a similar thing as #3 in a project I am >> ANT'ing, and if you are

Re: AW: Modify xml file

2009-01-21 Thread Brian Stephenson
Just as a followup, I do a similar thing as #3 in a project I am ANT'ing, and if you are not replacing in the XML file using regular expressions (e.g., you are just replacing 'password="foo"' with 'password="bar"'), you may be able to accomplish what you need to do with the much simpler-to-