System.Xml.XmlNode.OuterXml Property

Gets the markup containing this node and all its child nodes.

Syntax

public virtual string OuterXml { get; }

Value

A string representing this node. If the node is an element, the start and end tags are included.

Remarks

This property is a Microsoft extension to the Document Object Model (DOM).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0