System.Xml.XmlNode.OwnerDocument Property

Gets the System.Xml.XmlDocument to which this node belongs.

Syntax

public virtual XmlDocument OwnerDocument { get; }

Value

The System.Xml.XmlDocument that owns this node.

Remarks

When adding nodes to the current node, use the System.Xml.XmlDocument returned by the XmlNode.OwnerDocument property to create the node.

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