Mono Class Library: System.Xml.XmlWriter Overview | Members

System.Xml.XmlWriter.WriteStartElement Method

Writes a start element with the specified name, and associates it with the given namespace.

public void WriteStartElement (string localName, string ns)

Parameters

localName
A string specifying the local name of the element.
ns
A string specifying the namespace URI to associate with the element.

Exceptions

TypeReason
InvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed.

Remarks

This method calls XmlWriter.WriteStartElement(string, string)(null, localName, ns).

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0