XMLResolver: An enhanced XML resolver with XML Catalog support
Attention: On 7 August 2020, I changed the default branch in this repository to
If you’ve got a clone of this repo, you may want to update it. Apologies for the inconvenience.
The xmlresolver project provides an advanced implementation of the SAX
EntityResolver, the Transformer
URIResolver, and a new
NamespaceResolver. The implementation uses the OASIS XML Catalogs V1.1
Standard to provide a mapping from public identifiers to local
The xmlresolver can be found on Maven Central and has the coordinates:
In addition to enhanced support for RDDL-based namespace resolution, the implementation supports automatic local caching of resources. This provides the advantages of the catalog specification without requiring users to manage the mapping by hand.
Applications can use the resolver directly or they can instantiate one of a set of convenience classes to access parsers that automatically implement these resolvers.
The goal of this project is to produce a clean, reasonably simple API and a robust, thread-safe implementation.
See also: https://xmlresolver.org/
For guidelines about how to migrate your application from the Apache Commons resolver to this resolver, see documentation and examples in https://github.com/ndw/resolver-migration/