DocumentSet.Document MethodDocumentSet.Document MethodDocumentSet::Document Method

Returns an XPathNavigatorXPathNavigatorXPathNavigator instance representing a node in the document retrieved from the specified URI.

Syntax

Public Function Document( _
    uri As AnyUri _
) As System.Xml.XPath.XPathNavigator
public:
System.Xml.XPath::XPathNavigator^ Document(
    AnyUri^ uri
)
 

Parameters

uri

Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^

The URI of the document to be retrieved.

Return Value

Type: System.Xml.XPath.XPathNavigatorSystem.Xml.XPath.XPathNavigatorSystem.Xml.XPath::XPathNavigator^

A new instance representing the document, or null a null reference (Nothing in Visual Basic) nullptr if the URI was not handled.

Exceptions

ExceptionCondition
ArgumentNullExceptionArgumentNullExceptionArgumentNullExceptionuri is null a null reference (Nothing in Visual Basic) nullptr.
ArgumentExceptionArgumentExceptionArgumentExceptionuri is not an absolute URI.
XmlExceptionXmlExceptionXmlExceptionThe document returned from the document resolver was not valid.
XdmExceptionXdmExceptionXdmExceptionThe fragment could not be resolved, or an error occurred during a previous attempt to retrieve the document.
ExceptionExceptionException An error occurred retrieving the document.

Remarks

If the URI contains a fragment then this is resolved against the document and the navigator returned will be located at the specified fragment.