Writes an element with the specified local name and value.
value The value of the element.localName The local name of 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).