ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Johnson" <>
Subject RE: entity reference
Date Thu, 14 Nov 2002 00:39:45 GMT
It turns out that there were some '%' characters in the body of the build.xml which caused
the XML parser to fail.  Technically, within an XML document's body, the '%' character has
no significance and does not need to be escaped.  Nonetheless, since the parser was having
troubles with the '%' characters, I replaced them with the escaped hexadecimal equivalent
(&#x25;), and everything is working fine now.

- Jeff

-----Original Message-----
From: Jeff Johnson 
Sent: Wednesday, November 13, 2002 2:27 PM
To: Ant (E-mail)
Subject: entity reference


Has anyone seen this error when including entity references in their Ant buildfiles?

"Parameter entity references must not appear within markup declarations in the internal DTD

What I have is:

===== build.xml =====
<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE project [
    <!ENTITY deploy SYSTEM "file:./deploy.xml">

<project name="Project Name" default="compile" basedir=".">

    <target name="deploy">



===== deploy.xml =====

    <target name="deploy-dev">

    <target name="deploy-prod">


This works fine under most circumstances (e.g., running Ant from command-line on Win/Unix,
invoking the Ant buildfile from, etc.), but sometimes fails under
other circumstances.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message