Writes an element with the specified local name, namespace URI, and value.
Type Reason InvalidOperationException The XmlWriter.WriteState is WriteState.Closed.
This method calls the following methods to write a complete element:
XmlWriter.WriteStartElement(string, string)(localName, ns)
XmlWriter.WriteString(string)(value) - this method is not called if value is either null or string.Empty
If any of the input parameters are null or string.Empty, the element is written with that parameter missing.
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0