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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]