WriteStartDocument Method

XmlTextWriter.WriteStartDocument Method

 

Writes the XML declaration with the version "1.0".

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

NameDescription
System_CAPS_pubmethodWriteStartDocument()

Writes the XML declaration with the version "1.0".(Overrides XmlWriter.WriteStartDocument().)

System_CAPS_pubmethodWriteStartDocument(Boolean)

Writes the XML declaration with the version "1.0" and the standalone attribute.(Overrides XmlWriter.WriteStartDocument(Boolean).)

System_CAPS_noteNote

Starting with the .NET Framework 2.0, we recommend that you create XmlWriter instances by using the XmlWriter.Create method and the XmlWriterSettings class to take advantage of new functionality.

Return to top
Show:
© 2016 Microsoft