DocumentSet.Document MethodDocumentSet.Document MethodDocumentSet::Document Method
- XmlPrime 1.4
- Other Versions ▼
Returns an IXPathNavigableIXPathNavigableIXPathNavigable instance representing the document retrieved from the specified URI.
Syntax
Public Overridable Function Document( _ uri As AnyUri, _ whitespaceSettings As XsltWhitespaceSettings _ ) As System.Xml.XPath.IXPathNavigable
public virtual System.Xml.XPath.IXPathNavigable Document( AnyUri uri, XsltWhitespaceSettings whitespaceSettings )
public: virtual System.Xml.XPath::IXPathNavigable^ Document( AnyUri^ uri, XsltWhitespaceSettings^ whitespaceSettings )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the document to be retrieved.
- whitespaceSettings
Type: XmlPrime.XsltWhitespaceSettingsXmlPrime.XsltWhitespaceSettingsXmlPrime::XsltWhitespaceSettings^
Settings for whitespace stripping, or
nulla null reference (Nothingin Visual Basic)nullptrto use the default settings.
Return Value
Type: System.Xml.XPath.IXPathNavigableSystem.Xml.XPath.IXPathNavigableSystem.Xml.XPath::IXPathNavigable^
A new instance representing the document, or null
a null reference (Nothing in Visual Basic)
nullptr if the URI
was not handled.
Exceptions
| Exception | Condition |
| ArgumentNullExceptionArgumentNullExceptionArgumentNullException | uri is null
a null reference (Nothing in Visual Basic)
nullptr. |
| ArgumentExceptionArgumentExceptionArgumentException | uri is not an absolute URI. |
| XmlExceptionXmlExceptionXmlException | The document returned from the document resolver was not valid. |
| XdmExceptionXdmExceptionXdmException | An error occurred during a previous attempt to retrieve the document. |
| ExceptionExceptionException | An error occurred retrieving the document. |
