Nielsen.Allan Rene Dystrup AND wrote:
Since NAnt seems to be using the same parser for its own build file
as for VS project files (indeed for XML files in general), the approach
below hardly going to work...
Sure it will if you get the quoting right.
To try fix the XML parsing, I want to filter out
the '&' and substitute it with '&'
I try to use a Nant task with a <copy> and <filterchain>
to do that :
<filterchain>
<replacestring
from="class=Cics&services=NY51000"
to="class=Cics&services=NY51000"
ignorecase="true"
/>
</filterchain>
You need to make sure that the ampersand is entered as an entity
reference in the input to NAnt, and that the ampersand in the resulting
file is also represented by an entity reference. This means that the
latter has the peculiar, but legal form "&amp;".
So try:
<filterchain>
<replacestring
from="class=Cics&services=NY51000"
to="class=Cics&amp;services=NY51000"
ignorecase="true"
/>
</filterchain>
Gary
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users