You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Fergus Gallagher <Fe...@OrbisUK.com> on 2000/10/11 13:47:49 UTC
Setting an entityResolver - deprecated API
I want to set a custom entity resolver so I tried
XMLParserLiaison parserLiaison= processor.getXMLProcessorLiaison();
parserLiaison.setEntityResolver(resolver);
but Parser.setEntityResolver(...) is deprecated in SAX2.
Is there a new way of doing this?
Thanks
Fergus
--
Fergus Gallagher
Orbis
http://www.orbisuk.com/
+44-(0)20-8987 0717
Re: Setting an entityResolver - deprecated API
Posted by "Chris P. McCabe" <ch...@choicehotels.com>.
setEntityResolver is not deprecated, it's the entire org.xml.Parser interface
that is deprecated. The replacement interface is XMLReader, which has a
setEntityResolver method. Until the code is changed to start using the SAX2
interfaces, you will continue to get deprecation warnings (if you have them
turned on in the compiler). Note that XMLParserLiaison extends Parser, and not
XMLReader. I am assuming this will change in Xalan2.
Chris
Fergus Gallagher wrote:
> I want to set a custom entity resolver so I tried
>
> XMLParserLiaison parserLiaison= processor.getXMLProcessorLiaison();
> parserLiaison.setEntityResolver(resolver);
>
> but Parser.setEntityResolver(...) is deprecated in SAX2.
>
> Is there a new way of doing this?
>
> Thanks
>
> Fergus
>
> --
> Fergus Gallagher
> Orbis
> http://www.orbisuk.com/
> +44-(0)20-8987 0717
--
Chris P. McCabe - Senior Software Systems Architect
Choice Hotels International - Information Technology
chris_mccabe@choicehotels.com