Saxon.Api
Interface IResource
- All Known Implementing Classes
- Resource
-
public interface IResource
It is recommended (but is not universally the case) that fetching (and where necessary
parsing)
the content of a Resource should be delayed until the getItem
method is called. This means
that errors in fetching the resource or parsing its contents may go undetected until
the resource
is materialized in this way.
Method Summary |
|
---|---|
string | GetContentType() Get the media type (MIME type) of the resource if known |
string | GetResourceURI() Get a URI that identifies this resource |
XdmItem | GetXdmItem(DynamicContext context) Get an XDM Item holding the contents of this resource. |
Method Detail
GetContentType
GetResourceURI
Get a URI that identifies this resource
Returns:
GetXdmItem
Get an XDM Item holding the contents of this resource.
Parameters:
context
- the XPath evaluation contextReturns:
Get the media type (MIME type) of the resource if known
Returns: