| Modifier and Type | Field and Description |
|---|---|
static ResourceFactory |
FACTORY |
| Constructor and Description |
|---|
XmlResource(Configuration c,
NodeInfo doc) |
XmlResource(Configuration c,
Source source,
ParseOptions options,
int onError) |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Get the media type (MIME type) of the resource if known
|
Item |
getItem(XPathContext context)
Get an item representing the resource: in this case a document node for the XML document.
|
String |
getResourceURI()
Get a URI that identifies this resource
|
public static final ResourceFactory FACTORY
public XmlResource(Configuration c, NodeInfo doc)
public XmlResource(Configuration c, Source source, ParseOptions options, int onError)
public String getResourceURI()
ResourcegetResourceURI in interface Resourcepublic Item getItem(XPathContext context) throws XPathException
getItem in interface Resourcecontext - the XPath evaluation contextXPathException - if (for example) XML parsing failspublic String getContentType()
ResourcegetContentType in interface ResourceCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.