Mono Class Library: System.Xml.XmlWriter Overview | MembersSystem.Xml.XmlWriter.WriteElementString Method |
Writes an element with the specified local name, namespace URI, and value. [Edit]
|
Type Reason InvalidOperationException The XmlWriter.WriteState is WriteState.Closed. [Edit]
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.
[Edit]
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0