ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Hex character escaping.
Date Sat, 08 Feb 2003 16:32:08 GMT
Look up XML entities, like &gt; (read '&' 'g' 't' ';')

You may just need the missing semicolon. I'm not sure whether &#X; accepts
dec/oct/hex for X. I'd assume it does. --DD

-----Original Message-----
From: Todor Boev [mailto:t_boev@prosyst.bg]
Sent: Saturday, February 08, 2003 9:37 AM
To: ant-user@jakarta.apache.org
Subject: Hex character escaping.


Can I use the "&#x<hex number>" format to escape characters when I specify
values in Ant?
For example I need to have this executed:

<pathconvert targetos="windows" pathsep="&#xA" property ="build.list"
refid="build.fileset"/>

In other words instead of the default OS path separator I need a line-feed
(#xA). When run this produces an "Illegal hexadecimal character reference"
error. I also tried to escpae the letter "A" in an <echo
message="...&#x41..."/> task but it yelded the same result.

Todor Boev

Mime
View raw message