ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Validating buildfile
Date Tue, 14 Dec 2004 10:23:43 GMT
This is how my buildfile (build.xml) starts:

<?xml version="1.0"?>
<!DOCTYPE project PUBLIC "-//ANT//DTD project//EN"
"../shared/project.dtd" [
  <!ENTITY common-build SYSTEM "../shared/common-build.xml">

<project name="i3" default="deploy" basedir=".">

    <property name="view.dir" value="${basedir}/.."/>
    <property name="shared.dir" value="${view.dir}/shared"/>


    <property name="src.dir" value="${basedir}/dev/src"/>

This worked with ant perfectly fine so far. Recently I decided to switch
from a
plain text editor to an XML editor for maintaining the build files, so
I tried out of curiosity to validate the file. Strangely, I get a
validation error:

  "Element content is invalid according to the DTD/Schema. Expecting
   target, property. Line 11: &common-build;"

I tried this with two different XML editors, but got the same result
every time.

What is going wrong here? Why do I get the error message, although ant
perfectly able to run the build file?


Ronald Fischer 
Infineon Technologies AG
Tel: +49 89 234 81643
Fax +49 89 234 27850 
***** VISIT US AT: <> ***** 

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

View raw message