Saxon.Api
Class NodeResource
-
public class NodeResource
- implements IResource
An implementation of IResource
that represents an XDM node, simply by wrapping
an existing XdmNode
object
Constructor Summary |
|
---|---|
NodeResource (XdmNode node)
Create a |
Property Summary |
|
---|---|
string | ContentType
The content type of the resource: for a |
Uri | ResourceUri
The |
Method Summary |
|
---|---|
XdmItem | GetXdmItem () Get the item representing the value of the resource |
Constructor Detail
NodeResource
Create a NodeResource
whose content is supplied as an existing XDM node
Parameters:
node
- The XDM nodeProperty Detail
ContentType
The content type of the resource: for a NodeResource
this is "application/xml".
ResourceUri
The ResourceUri
of a NodeResource
is the document URI of the node, if it exists
For many nodes, (including all non-document nodes) the ResourceUri
will be null.
Get the item representing the value of the resource
Returns: