Which "entity resolver" was discussed yesterday ?
Cantor, Scott
cantor.2 at osu.edu
Sun Dec 8 14:49:16 EST 2013
On 12/7/13, 3:29 PM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:
>What kind of "entity resolver" were we talking about on yesterday's dev
>call ?
>
>I was obviously uncertain. A recent JIRA issue for the
>ClasspathResolver, which implements org.xml.sax.EntityResolver, which
>is what I thought we were talking about, prompts my question.
If you look at the javadoc for SchemaFactory (part of JAXP, it has methods
to set/get an LSResourceResolver, which is part of DOM3 (it has a
Load/Save subsection of methods related to XML parsing which are fairly
weird and inconsistently used across DOM-based software). For whatever
reason, the guy doing the totally proprietary and made-up SchemaFactory
stuff in JAXP decided to reuse the DOM3 interface. Not a terrible idea,
just kind of out of left field and again, nothing to do with SAX, StAX, or
even, AFAIK, DOM parsing itself. DOM always had an older EntityResolver
interface of its own that I think is still used.
-- Scott
More information about the dev
mailing list