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.
Assembly: System.Xml (in System.Xml.dll)
protected: void WriteElementLiteral( XmlNode^ node, String^ name, String^ ns, bool isNullable, bool any )
Parameters
- node
-
Type:
System.Xml::XmlNode^
The XML node to write, possibly a child XML element.
- name
-
Type:
System::String^
The local name of the parent XML element to write.
- ns
-
Type:
System::String^
The namespace of the parent XML element to write.
- isNullable
-
Type:
System::Boolean
true to write an xsi:nil='true' attribute if the object to serialize is null; otherwise, false.
- any
-
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.
Available since 1.1