ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: which xml parse package that ant use?
Date Mon, 17 Nov 2008 16:55:00 GMT
Also sax is stream based - so the first errors  that
ant would see would be the fact that the first element is
not "project"  the malformed xml document would
not be noticed at this stage as processing of the
document would stop.

Peter


On Mon, Nov 17, 2008 at 3:46 PM, Stefan Bodewig <bodewig@apache.org> wrote:
> Ant uses a SAX parser, not a DocumentBuilder (see
> javax.xml.parsers,SAXParser), this alone may explain the difference.
>
> It will use whatever JAXP provides, but Ant ships with a pretty recent
> version of Apache Xerces.
>
> Finally, the error message you cite comes from Ant, not the parser.
> If the documents wasn't at least well-formed, Ant wouldn't get a
> chance to say which element was different from the one it expected.
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message