System.Xml.Serialization.XmlSerializationWriter.WriteElementEncoded Method

Writes an XML node object within the body of a named XML element.

Syntax

protected void WriteElementEncoded (System.Xml.XmlNode node, string name, string ns, bool isNullable, bool any)

Parameters

node
The XML node to write, possibly a child XML element.
name
The local name of the parent XML element to write.
ns
The namespace of the parent XML element to write.
isNullable
true to write an xsi:nil='true' attribute if the object to serialize is null; otherwise, false.
any
true to indicate that the node, if an XML element, adheres to an XML Schema any element declaration; otherwise, false.

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.

The XmlSerializationWriter.WriteElementEncoded(System.Xml.XmlNode, string, string, bool, bool) 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