
Hi Eliot, In oXygen we use the parser at SAX level (that is why we resolve the schemas using the system ID mappings) so we just set an EntityResolver: XMLReader.setEntityResolver(EntityResolver) http://www.saxproject.org/apidoc/org/xml/sax/XMLReader.html#setEntityResolve...) Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Eliot Kimber wrote:
George Cristian Bina wrote:
You can set an XMLEntiryResolver as a property, here it is an example on the Xerces website: http://xml.apache.org/xerces2-j/faq-xcatalogs.html
OK--that's what I am doing (setting the entity resolver property on the reader).
Not really an issue to discusss on this forum, but the problem I'm running into is that while the above sets the resolver for the parser, it doesn't set it for the schema loader, which, at least as I have things configured, defaults to the base XMLEntityResolver.
But when using oXygen I do get schema locations resolved through the catalog, albeit via the wrong kind of entries, so I must be missing something somewhere.
Anyway, I'm sure I'll figure it out eventually.
Thanks for the help.
Cheers,
Eliot