Thanks. That is an option that I forgot about.
However, that complicates my plans to
validate the test data against a schema.
Perhaps I could use XSL to preprocess the file,
adding in the CDATA sections.
-----Original Message-----
From: Stefan Bodewig [mailto:bodewig@apache.org]
Sent: Friday, June 21, 2002 10:34 AM
To: ant-user@jakarta.apache.org
Subject: Re: custom task & 'untouched' xml from build file
On Fri, 21 Jun 2002, Erik Ostermueller <Erik.Ostermueller@alltel.com>
wrote:
> However, I'd like ANT to pass all nested XML to me in an unaltered
> form, not piece by piece.
<mytask><![CDATA[
<foo>
<bar>
</bar>
</foo>
]]></mytask>
should work - you need to implement addText in your custom task and
will receive the whole thing in a String (may be called multiple
times, so better you concatenate them).
Stefan
--
To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
--
To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
|