System.Xml.Serialization.XmlSerializationWriter.WriteElementLiteral Method

Instructs an System.Xml.XmlWriter object to write an System.Xml.XmlNode object within the body of a named XML element.

Syntax

protected void WriteElementLiteral (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.WriteElementLiteral(System.Xml.XmlNode, string, string, bool, bool) method is called only when writing literal XML that can be defined in an XML Schema document.

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