"Alan Ezust" <[EMAIL PROTECTED]> wrote on 06/28/2006 11:51:58 AM:
> I want to rewrite an old resolver that also has a baseURI in its > signature, like this: > > public static InputSource resolve(String current, > String publicId, String systemId) > > The XMLReader.setEntityResolver() method takes an EntityResolver that > does not have a baseURI in its signature. I need one with a baseURI. Take a look at EntityResolver2 [1]. It has such a method and it will be called if you register an instance of EntityResolver2 with the XMLReader. > I noticed there is a class in xerces.xni, called XMLEntityResolver, > but once I have one of those, how do I use it with an XMLReader? The > docs indicate I shouldn't be using the xni unless I need to interface > with particular classes, so is there a standardEntityResolver that I > can use with XMLReader that takes a baseURI? > > I saw the LSEntityResolver, it might be what I need, > but I couldn't figure out how to create LSObjects > based on URLs - the API documentation for DOMImplementationLS is > a bit lacking. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] [1] http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/ext/EntityResolver2.html Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
