XmlElement.InnerText Property

 

Gets or sets the concatenated values of the node and all its children.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

override InnerText : string with get, set

Property Value

Type: System.String

The concatenated values of the node and all its children.

Setting this property replaces all the children with the parsed contents of the given string.

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

The following example compares the InnerText and InnerXml properties.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show: