Re: XMLReaderFactory.createXMLReader()

David Megginson <[email protected]> Mon, 26 Apr 2004 13:57:52 -0400
Newsgroups gmane.text.xml.sax.devel
Message-ID <[email protected]>
Elliotte Harold wrote:

> The failure of the no-args version of XMLReaderFactory.createXMLReader() 
> has long been a problem for users. Parser vendors are supposed to 
> rewrite this method so that it works with their parser. In practice they 
> don't. This patch fixes that problem in two ways:
> 
> 1. It modifies the JavaDoc to make it blindingly obvious that parser 
> vendors are expected to rewrite this method and rewrite the class.
> 
> 2. It changes the default implementation so that if the parser vendor 
> does not rewrite this method, and none of the usual mechanisms for 
> finding parsers succeed, then it attempts to load one of nine known 
> parser classes whose names are hard coded into the source. If the user 
> has some common parser somewhere in their classpath, this method will 
> now find it, even if no META-INFO or system properties have been set.

I'll add this one to the post-release queue as well.


Thanks,


David


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
List: sax-devel, [email protected]
See:  http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel