WriteEndElement Method

XmlTextWriter.WriteEndElement Method ()

 

Closes one element and pops the corresponding namespace scope.

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

override WriteEndElement : unit -> unit

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.

If the element contains no content a short end tag "/>" is written; otherwise a full end tag is written.

The following example writes an XML file representing a book.

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

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft