Elliotte Rusty Harold wrote:
> At 9:07 PM -0800 3/4/04, Clay Leeds wrote:
> >- if XMLReaderFactory works under JDK 1.3 and/or 1.2, what kinds of 
> >benefits might fop-0.20.5 see from a switch to XMLReaderFactory?
> Cleaner simpler code that's less likely to get hosed by different 
> implementations interpreting a spec in very different ways.  Plus 
> you'll be ready for the eventual deprecation of SAXParserFactory in 
> JAXP 1.4. And you'll be able to work with SAX parsers that don't 
> support JAXP. Not sure how much of an issue that is any more in 
> practice, but it was a very real issue in the recent past.

It took me a little while, but I now remember again why I did not want
to use the XMLReaderFactory. I do not understand how I can guarantee
that I get an XMLReader that is capable of validation. In
SAXParserFactory I can configure the factory to look for a validating
and namespace-aware parser. In XMLReaderFactory, it may produce an
XMLReader which throws an exception when I want to set the validating
feature on it.

Simon Pepping

Simon Pepping
home page: http://www.leverkruid.nl

Reply via email to