ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Fix <jakob....@gmail.com>
Subject Re: replace &lt; with < in property ??
Date Fri, 03 Feb 2006 09:44:43 GMT
Gilbert,

[jumping into this discussion a bit late]

On 03/02/06, Rebhan, Gilbert <Gilbert.Rebhan@huk-coburg.de> wrote:
> Background = users  write some instructions
> for Websphere admins in a text field of a webform.
> Often the instructions contain some xml snippets for
> editing configfiles.
> All the input of the webform is put into a xmlpropertyfile,
> so xmltags have to be masked - right now with &lt; and &gt;
> (as usual) to get a wellformed xmlpropertyfile.

wouldn't it be possible to put the data in an unparsed <![CDATA[ ]]>
section inside you xmlproperty file, rather than "masking" the special
characters?

I haven't tested this, though.  In general, converting xml by hand or
regexp should be avoided and be done by the parser.

--
cheers,
Jakob.

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


Mime
View raw message