Writes an element with the specified local name, namespace URI, and value.
value The value of the element.localName The local name of the element.ns The namespace URI to associate with the element.value The value of the element.
TypeReasonInvalidOperationExceptionThe XmlWriter.WriteState is WriteState.Closed.
For the asynchronous version of this method, see XmlWriter.WriteElementStringAsync(string, string, string).