XmlNode.OuterXml Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

abstract OuterXml : string with get
override OuterXml : string with get

Property Value

Type: System.String

The markup containing this node and all its child nodes.

System_CAPS_noteNote

OuterXml does not return default attributes.

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

The following example compares output from the InnerXml and OuterXml 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: