[jdom-interest] Re: [Fwd: JDOM ?]

philip.nelson at omniresources.com philip.nelson at omniresources.com
Thu Mar 14 21:13:35 PST 2002

> If parsers aren't 100% reusable (as in after an exception) 
> then SAXBuilder is wise to recreate them.  It makes 
> SAXBuilder reusable even if the parser isn't.
> I suspect the time to build a parser only matters if you're 
> doing many super-small documents.  That's probably going to 
> be common with SOAP and such, so this is something to watch.

Saxbuilder is a pretty general way to build the xml reader and is optimized
for reliability and features over performance.  I agree that we have
targeted cases that really don't resemble soap.  I also think that a cut and
paste of the create method tailored for your specific parser gives you the
most flexibility if you are tweaking cycles like that.  And really, there's
not much to it.

More information about the jdom-interest mailing list