ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant not recognizing entity
Date Tue, 22 May 2001 06:00:21 GMT
Mark Jaffe <mjaffe@eturn.com> wrote:

> I am creating an HTML page in my build file, and writing a version
> string into it. I got an error when I first executed this code:

>   <echo file="ps/html/version.tmpl" >
> &lt;html&gt;
>...
>&copy;
>...
></echo>

copy is not a known entity for the XML-parser.  I think you'd better
use a CDATA-section:

<echo file="ps/html/version.tmpl" ><![CDATA[
<html>
...
&copy;
...
]]></echo>

or use a template like Diane suggested.

Stefan

Mime
View raw message