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 (%), 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 Greetings, 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 subset." 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="."> ... &deploy; <target name="deploy"> ... </target> ... </project> ====================== ===== deploy.xml ===== ====================== <target name="deploy-dev"> ... </target> <target name="deploy-prod"> ... </target> ----- This works fine under most circumstances (e.g., running Ant from command-line on Win/Unix, invoking the Ant buildfile from org.apache.tools.ant.Project, etc.), but sometimes fails under other circumstances. Thanks, Jeff -- 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>