Saxon.Api
Class XmlReaderResource
-
public class XmlReaderResource
- implements IResource
An implementation of IResource
that contains the ingredients to construct an XDM node,
supplied in the form of a DocumentBuilder
and an XmlReader
representing an XML parser
that can be called upon to construct the node when required
Constructor Summary |
|
---|---|
XmlReaderResource (DocumentBuilder builder, XmlReader parser)
Create a |
Property Summary |
|
---|---|
string | ContentType The content type, always "application/xml" |
Uri | ResourceUri The resource URI returned is the base URI property set in the XML parser. Note there is no guarantee this will be unique. |
XmlReader | XmlReader The XmlReader (parser), as supplied |
Method Summary |
|
---|---|
XdmItem | GetXdmItem () Get the item represented by this resource |
Constructor Detail
XmlReaderResource
Create a XmlReaderResource
whose content is supplied as an existing XDM node
Parameters:
builder
- A document builder, suitably initializedparser
- An XmlReader, suitably initializedProperty Detail
ResourceUri
The resource URI returned is the base URI property set in the XML parser. Note there is no guarantee this will be unique.
Get the item represented by this resource
Returns: