ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: question and idea.
Date Mon, 18 Feb 2002 07:44:53 GMT
On Sat, 16 Feb 2002, Jonathan Locke <jonathanwlocke@yahoo.com> wrote:
> is the SAX part of ant's XML parsing 100% pluggable?
> is there a mechanism for doing this?

Well, sort of.  Ant uses JAXP to get its parser and it uses SAX 1.x,
at least at the moment and is not really tight to an XML input.

All you'd have to do to swap the SAX parser was to provide a
SAXParserFactory of your own, see 

<http://java.sun.com/j2se/1.4/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance()>

Whether I think that you syntax is easier to read than Ant's "normal"
XML is a different question, though 8-)

Stefan

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


Mime
View raw message