xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] JDK 1.5 with xom and no external parser
- From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
- To: Wolfgang Hoschek <whoschek AT lbl.gov>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] JDK 1.5 with xom and no external parser
- Date: Sat, 14 Aug 2004 22:51:46 -0400
At 5:46 PM -0700 8/13/04, Wolfgang Hoschek wrote:
Perhaps the nu.xom.XML1_0Parser might factor the new funky class names in as well...
I'm trying to figure out how to make this work. It's not obvious how to do it without requiring Java 1.5 to compile it. Right now XML1_0Parser looks like this:
package nu.xom;
import org.apache.xerces.parsers.SAXParser;
import org.apache.xerces.parsers.DTDConfiguration;
class XML1_0Parser extends SAXParser {
XML1_0Parser() {
super(new DTDConfiguration());
}
}
What I now need in addition to this is:
package nu.xom;
import com.sun.org.apache.xerces.internal.parsers.SAXParser;
import com.sun.org.apache.xerces.internal.DTDConfiguration;
class JDK15XML1_0Parser extends SAXParser {
JDK15XML1_0Parser () {
super(new DTDConfiguration());
}
}
The problem is that I don't want to require Java 1.5 (or JAXP 1.2.6, which also has these renamed packages) to compile or run XOM. Thoughts? Suggestions?
--
Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
-
[XOM-interest] JDK 1.5 with xom and no external parser,
Wolfgang Hoschek, 08/13/2004
- Re: [XOM-interest] JDK 1.5 with xom and no external parser, Elliotte Rusty Harold, 08/13/2004
-
Re: [XOM-interest] JDK 1.5 with xom and no external parser,
Elliotte Rusty Harold, 08/14/2004
-
Re: [XOM-interest] JDK 1.5 with xom and no external parser,
Wolfgang Hoschek, 08/14/2004
- Re: [XOM-interest] JDK 1.5 with xom and no external parser, Elliotte Rusty Harold, 08/15/2004
-
Re: [XOM-interest] JDK 1.5 with xom and no external parser,
Wolfgang Hoschek, 08/14/2004
Archive powered by MHonArc 2.6.24.