- All Implemented Interfaces:
- Serializable, URIResolver, NonDelegatingURIResolver
public class XomUriResolver
- extends StandardURIResolver
This class is a URI resolver that loads an XML document found at the relevant
URI and builds a XOM tree from it; the XOM tree is then returned as a source object.
The main purpose of this class is for testing: any application that works with
a Saxon tinytree can be tested against XOM merely by selecting this URIResolver.
- Michael H. Kay
- See Also:
- Serialized Form
|Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public XomUriResolver(Configuration config)
public Source resolve(String href,
- Resolve a URI
- Specified by:
resolve in interface
resolve in class
href - The relative or absolute URI. May be an empty string. May contain
a fragment identifier starting with "#", which must be the value of an ID attribute
in the referenced XML document.
base - The base URI that should be used. May be null if uri is absolute.
- a Source object representing an XML document
Copyright (c) 2004-2010 Saxonica Limited. All rights reserved.