Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] JDK 1.5 with xom and no external parser

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] JDK 1.5 with xom and no external parser
  • Date: Fri, 13 Aug 2004 17:46:25 -0700

BTW, Tried a test on JDK 1.5 with xom-1.0a5. To get it to run without an external parser (that is, using the JDK internal xerces parser that replaces crimson) one needs to add
"com.sun.org.apache.xerces.internal.parsers.SAXParser" to the known parser names in Builder.java.

private static String[] parsers = {
"nu.xom.XML1_0Parser",
"org.apache.xerces.parsers.SAXParser",
"gnu.xml.aelfred2.XmlReader",
"com.sun.org.apache.xerces.internal.parsers.SAXParser",
"org.apache.crimson.parser.XMLReaderImpl",
...

Perhaps the nu.xom.XML1_0Parser might factor the new funky class names in as well...

Wolfgang.





Archive powered by MHonArc 2.6.24.

Top of Page