System.Xml.Serialization.XmlSerializationWriter.WriteElementString Method

Writes an XML element with a specified value in its body.

Syntax

protected void WriteElementString (string localName, string ns, string value, System.Xml.XmlQualifiedName xsiType)

Parameters

localName
The local name of the XML element.
ns
The namespace of the XML element.
value
The text value of the XML element.
xsiType
The name of the XML Schema data type to be written to the xsi:type attribute.

Remarks

The protected members of System.Xml.Serialization.XmlSerializationWriter are intended for use only by derived classes that are used internally within the .NET Framework XML serialization infrastructure.

Requirements

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