Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Known parsers

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <wolfgang.hoschek AT mac.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Known parsers
  • Date: Thu, 08 Jan 2009 20:59:55 -0800

Wolfgang Hoschek wrote:
Even though it has no effect on the OOM discussed in another thread, I think it would be nice if Builder.setupParser() would recognize xerces-2.9.x and the JDK-1.6 xerces flavour by adding the following to the list of its known parsers:

"org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser", // xerces-2.9.x
"com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl $JAXPSAXParser", // JDK 1.6


Like so:

// A couple of Xerces specific properties
if (parserName.equals("nu.xom.XML1_0Parser")
|| parserName.equals("nu.xom.JDK15XML1_0Parser")
|| parserName.equals("org.apache.xerces.parsers.SAXParser")
|| parserName.equals("com.sun.org.apache.xerces.internal.parsers.SAXParser")
|| parserName.equals("org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser") // xerces-2.9.x
|| parserName.equals("com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser")) // JDK 1.6
{

Done.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA



  • Re: [XOM-interest] Known parsers, Elliotte Harold, 01/08/2009

Archive powered by MHonArc 2.6.24.

Top of Page