ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject SAX 1.0 vs SAX 2.0
Date Fri, 21 Apr 2000 03:11:59 GMT

While Duncan is off contemplating changes to the core interfaces, I thought
it would be a good time to look into something even more internal -
hopefully something that we will still need once everything settles down -

First comment: JAXP works as advertised - one *can* switch between Xerces
and ProjectX with a simple change in classpath.  Unfortunately, it can't
work miracles - there is a substantial difference between the two.

ProjectX only supports SAX 1.0.  Xerces's support for SAX 1.0 is

Choices are:

   1) Stay with SAX 1.0 and accept the deprecation warnings for .  Note:
   there are a *LOT* of deprecation warnings.  Screen fulls.  Many screen

   2) Stay with SAX 1.0 and turn off deprecation warnings on Ant builds.

   3) Go with SAX 2.0.  This makes Sun's parser not an option for now, but
   presumably that will be rectified.

I don't like option 1.  While I typically want to know this type of
information, there are enough warnings that any signal will be drowned out
by the noise.  Note: there already are two deprecation warnings when
compiling with JDK 1.1.x related to Sun deprecating PrintStream in 1.1 and
then reversing course with 1.2.

Option 3 is clearly the right long term direction, but presumably there is
demand for the Sun parser.  Option 2 supports the most parsers and probably
is the right choice for now, I just wanted everybody to know about the
ramification on turning off the deprecation warnings.

Those are my thoughts.  What does everybody else think?

- Sam Ruby

Feedback to mpfoemme: tabs are eight spaces and diff -u format is
preferred.  Other than these cosmetic items: superb job!  I particularly
like the capturing of line numbers so that errors are more easily located.

View raw message