Elliotte Rusty Harold <[EMAIL PROTECTED]> wrote on 08/02/2005 02:46:49 PM:
> Tech Rams wrote: > > JDK 1.5 has xerces built-in, though under a different > > package name (com.sun.org.apache.xerces.internal). > > > > Look at > > http://java.sun.com/j2se/1.5. > 0/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance() > > to know how factory implementation is found. The > > default implementation is the one that comes with JDK > > 1.5, that is xerces. > > > > Please don't. SAXParserFactory is a disaster waiting to happen, If you > use it, you'll only find yourself back here in a week pleading for help > with undiagnosable bugs. It was designed for SAX1. In 2005 nobody should > be using SAX1, SAXParser, or SAXParserFactory. Use XMLReader and > XMLReaderFactory instead. Unless you want to enable XInclude processing, plug-in a schema validator or reliably reset the parser to the configuration it had when it was created. If you want to do these things, SAX2 alone isn't sufficient. > -- > > Elliotte Rusty Harold > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
