[jdom-interest] Re: Getting close with SAX...

Joseph Bowbeer jozart at csi.com
Mon Nov 6 13:22:18 PST 2000

Comments and questions:

Why would you make SAX more JDOM friendly rather than making JDOM more
SAX friendly?

Note that the Attributes in a SAX startElement event are immutable,
whereas JDOM's Attribute is mutable, so some kind of conversion is
required -- even if JDOM provided a SAX Attributes implementation.

However, if JDOM provided SAX Attributes implementation, then JDOM
documents could be converted to SAX streams more efficiently.

----- original message -----

James Strachan james at metastuff.com
Mon, 6 Nov 2000 12:59:55 -0000

So we basically make 2 different collection representations of
for each element in a document. This is needless redundancy - if SAX and
JDOM moved closer, we could avoid. e.g. we could make a a 'collection of
attributes' once in SAX and can be reused directly as is in JDOM.

Maybe we just need to get the XML parsers to work with either JDOM
or SAX natively instead, though that seems a much bigger job than just
making minor changes to SAX to make it more JDOM friendly.

James Strachan

More information about the jdom-interest mailing list