xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
[XOM-interest] Improved handling of Builder.setupParser for JDK 1.5?
- From: Wolfgang Hoschek <whoschek AT lbl.gov>
- To: xom-interest AT lists.ibiblio.org
- Subject: [XOM-interest] Improved handling of Builder.setupParser for JDK 1.5?
- Date: Thu, 19 Aug 2004 19:20:03 -0700
It may not matter, but unless there is a difference here, perhaps Builder.setupParser should account for the xerces internal parser in JDK 1.5 in the same way it does for an external xerces:
Builder.setupParser(...)
...
// A couple of Xerces specific properties
if (parser.getClass().getName().equals("nu.xom.XML1_0Parser")
|| parser.getClass().getName().equals("nu.xom.JDK15XML1_0Parser") // WH diff
|| parser.getClass().getName().equals("com.sun.org.apache.xerces.internal.p arsers.SAXParser") // WH diff
|| parser.getClass().getName().equals("org.apache.xerces.parsers.SAXParser" )) {
try {
parser.setFeature(
"http://apache.org/xml/features/allow-java-encodings", true);
}
...
-
[XOM-interest] Improved handling of Builder.setupParser for JDK 1.5?,
Wolfgang Hoschek, 08/19/2004
- Re: [XOM-interest] Improved handling of Builder.setupParser for JDK 1.5?, Elliotte Rusty Harold, 08/20/2004
Archive powered by MHonArc 2.6.24.