MarkLogic XCC/.Net Library |

# XdmElement.AsXmlElement Method

Returns an XmlElement object equivalent to this XdmElement. Buffers the element() item from the server and converts it to an XmlElement DOM object. The element() 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 AsXmlElement() As XmlElement
[C#]
XmlElement AsXmlElement();

#### Return Value

This item as an XmlElement instance.

#### See Also

XdmElement Interface | Marklogic.Xcc.Types Namespace