MarkLogic XCC/.Net Library |

# XdmDocument.AsXmlDocument Method

Returns an XmlDocument equivalent of this document. Buffers the document item from the server and converts it to an XmlDocument object. The document is buffered as a String object. Subsequent calls will create a new DOM tree from the same String. The buffered String may also be used by AsString() and AsStream().

[Visual Basic]
Function AsXmlDocument() As XmlDocument
[C#]
XmlDocument AsXmlDocument();

#### Parameters

#### Return Value

This item as an XmlDocument instance.

#### See Also

XdmDocument Interface | Marklogic.Xcc.Types Namespace