XmlDeclaration.Standalone Property

 

Gets or sets the value of the standalone attribute.

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

member Standalone : string with get, set

Property Value

Type: System.String

Valid values are yes if all entity declarations required by the XML document are contained within the document or no if an external document type definition (DTD) is required. If a standalone attribute is not present in the XML declaration, this property returns String.Empty.

The following example creates an XmlDeclaration node and adds it to an XML document.

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: