System.Xml.Serialization.XmlSerializationWriter.WriteNullableQualifiedNameEncoded Method

Writes an XML element whose body contains a valid XML qualified name. System.Xml.XmlWriter inserts an xsi:nil='true' attribute if the string's value is null.

Syntax

protected void WriteNullableQualifiedNameEncoded (string name, string ns, System.Xml.XmlQualifiedName value, System.Xml.XmlQualifiedName xsiType)

Parameters

name
The local name of the XML element to write.
ns
The namespace of the XML element to write.
value
The XML qualified name to write in the body 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.

When set to true, the nil attribute from the XML Schema instance namespace (abbreviated xsi) indicates a null value.

The XmlSerializationWriter.WriteNullableQualifiedNameEncoded(string, string, System.Xml.XmlQualifiedName, System.Xml.XmlQualifiedName) method is called only when writing SOAP-encoded XML, as described in Section 5 of the SOAP 1.1 specification.

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