WriteElementLiteral Method
Collapse the table of content
Expand the table of content

XmlSerializationWriter.WriteElementLiteral Method (XmlNode, String, String, Boolean, Boolean)


This API supports the product infrastructure and is not intended to be used directly from your code.

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

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

protected void WriteElementLiteral(
	XmlNode node,
	string name,
	string ns,
	bool isNullable,
	bool any


Type: System.Xml.XmlNode

The XML node to write, possibly a child XML element.

Type: System.String

The local name of the parent XML element to write.

Type: System.String

The namespace of the parent XML element to write.

Type: System.Boolean

true to write an xsi:nil='true' attribute if the object to serialize is null; otherwise, false.

Type: System.Boolean

true to indicate that the node, if an XML element, adheres to an XML Schema any element declaration; otherwise, false.

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

The WriteElementLiteral method is called only when writing literal XML that can be defined in an XML Schema document.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft