Mono Class Library: System.Xml.XmlNode Overview | Members

System.Xml.XmlNode.InnerXml Property

Gets or sets the contents of the node as an Xml string. [Edit]

public virtual string InnerXml { set; get; }

Value

The contents of the node as an Xml string. When getting the value of this property, InnerXml returns the same string that XmlNode.WriteContentTo would write to an System.Xml.XmlTextWriter.

When setting the value of this property, the value is parsed as Xml, and the current children of the node are replaced by the nodes parsed from the string.

[Edit]

Remarks

Setting this property is only valid for nodes which are not read-only and can have children. [Edit]

Requirements

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