System::Xml::XmlDeclaration class

XmlDeclaration class

Represents the XML declaration node .

class XmlDeclaration : public System::Xml::XmlLinkedNode

Methods

MethodDescription
CloneNode(bool) overrideCreates a duplicate of this node.
get_Encoding()Returns the encoding level of the XML document.
get_InnerText() overrideReturns the concatenated values of the XmlDeclaration.
get_LocalName() overrideReturns the local name of the node.
get_Name() overrideReturns the qualified name of the node.
get_NodeType() overrideReturns the type of the current node.
get_Standalone()Returns the value of the standalone attribute.
get_Value() overrideReturns the value of the XmlDeclaration.
get_Version()Returns the XML version of the document.
set_Encoding(const String&)Sets the encoding level of the XML document.
set_InnerText(String) overrideSets the concatenated values of the XmlDeclaration.
set_Standalone(const String&)Sets the value of the standalone attribute.
set_Value(String) overrideSets the value of the XmlDeclaration.
WriteContentTo(const SharedPtr<XmlWriter>&) overrideSaves the children of the node to the specified XmlWriter. Because XmlDeclaration nodes do not have children, this method has no effect.
WriteTo(const SharedPtr<XmlWriter>&) overrideSaves the node to the specified XmlWriter.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also