[jdom-interest] DOMAdapter propose

Jason Hunter jhunter at acm.org
Wed Jan 9 10:52:33 PST 2002


With SAX you don't need adapters, you just pass in the driver class. 
JDOM works with any SAX parser.  Note JAXP isn't even a parser, it's
only a parser front-end.

-jh-

Eugene Karpov wrote:
> 
> Cause JDOM do not provide SAXAdapters for parsers other then JAXP.
> 
> ;)
> 
> On Tuesday 08 January 2002 20:46, Jason Hunter wrote:
> > Why would you use DOM to build from a URL when you can build faster with
> > SAX?
> >
> > -jh-
> >
> > Eugene Karpov wrote:
> > > I've a propose to add getDocument(java.net.URL url, boolean validate)
> > > method to DOMAdapter interface.
> > >
> > > So, if original parser permit using URL as input, it will make possible
> > > to use relative URLs for system DTDs and ENTITIES. Otherwise, it will
> > > always possible to convert URL to InputStream.
> > >
> > > With current DOMAdapter interface I could not use relative system DTD
> > > path for XML and corresponding DTD stored in JAR, cause it can not be
> > > described in terms of java.io.File.
> > >
> > > --
> > > B.R.
> > > Eugene
> > > _______________________________________________
> > > To control your jdom-interest membership:
> > > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@your
> > >host.com
> >
> > _______________________________________________
> > To control your jdom-interest membership:
> > http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourho
> >st.com
> 
> --
> B.R.
> Eugene



More information about the jdom-interest mailing list