Initializes a new instance of the XmlDecl class.
The options associated with the XML declaration.
Gets the XML encoding to be included in the declaration.
The XML encoding to be included in the declaration. This value may be undefined.
Sets the XML encoding to be included in the declaration.
The XML encoding to be included in the declaration. This value must be a valid encoding. If left undefined, no encoding is included.
The XML encoding to be included in the declaration. This value may be undefined.
Gets the parent of this node.
The parent of this node.
Gets the XML standalone attribute to be included in the declaration.
The XML standalone attribute to be included in the declaration. This value may be undefined.
Sets the XML standalone attribute to be included in the declaration.
The XML standalone attribute to be included. This value must be "yes" or "no". If left undefined, no standalone attribute is included.
The XML standalone attribute to be included in the declaration. This value may be undefined.
Gets the XML version to be included in the declaration.
The XML version to tbe included in the declaration.
Sets the XML version to be included in the declaration.
The XML version to be included in the declaration. This value must be a valid XML version number. If left undefined, the default version is "1.0".
The XML version to tbe included in the declaration.
Gets the node that follows this one, or undefined if no such node exists or if this node has no parent.
The node that follows this one, or undefined if no such node exists or if this node has no parent.
Gets the node that is previous to this one, or undefined if no such node exists or if this node has no parent.
The node that is previous to this one, or undefined if no such node exists or if this node has no parent.
Removes this node from its parent if this node has a parent.
This node's parent, or undefined if it has no parent.
Returns an XML string representation of this node.
Formatting options for the string representation.
An XML string representation of this node.
Returns the root node of the current hierarchy. If this node has no parent, this node itself is returned.
The root node of the current hierarchy.
Gets the parent of this node.
Generated using TypeDoc
Represents an XML declaration.
An XML declaration is structured as follows, where
{version}
is the XML version,{encoding}
is the encoding of the document, and{standalone}
is either "yes" or "no", depending on whether the document may contain external markup declarations:<?xml version="{version}" encoding="{encoding}" standalone="{standalone}"?>
The
{version}
,{encoding}
, and{standalone}
values are properties of this node.XmlDecl nodes cannot have any children.