XmlDeclaration Members
.NET Framework 2.0
Represents the XML declaration node <?xml version='1.0'...?>.
The following tables list the members exposed by the XmlDeclaration type.
| Name | Description | |
|---|---|---|
| Attributes | Gets an XmlAttributeCollection containing the attributes of this node.(Inherited from XmlNode.) |
| BaseURI | Gets the base URI of the current node.(Inherited from XmlNode.) |
| ChildNodes | Gets all the child nodes of the node.(Inherited from XmlNode.) |
| Encoding | Gets or sets the encoding level of the XML document. |
| FirstChild | Gets the first child of the node.(Inherited from XmlNode.) |
| HasChildNodes | Gets a value indicating whether this node has any child nodes.(Inherited from XmlNode.) |
| InnerText | Overridden. Gets or sets the concatenated values of the XmlDeclaration. |
| InnerXml | Gets or sets the markup representing only the child nodes of this node.(Inherited from XmlNode.) |
| IsReadOnly | Gets a value indicating whether the node is read-only.(Inherited from XmlNode.) |
| Item | Overloaded. Gets the specified child element.(Inherited from XmlNode.) |
| LastChild | Gets the last child of the node.(Inherited from XmlNode.) |
| LocalName | Overridden. Gets the local name of the node. |
| Name | Overridden. Gets the qualified name of the node. |
| NamespaceURI | Gets the namespace URI of this node.(Inherited from XmlNode.) |
| NextSibling | Gets the node immediately following this node.(Inherited from XmlLinkedNode.) |
| NodeType | Overridden. Gets the type of the current node. |
| OuterXml | Gets the markup representing this node and all its child nodes.(Inherited from XmlNode.) |
| OwnerDocument | Gets the XmlDocument to which this node belongs.(Inherited from XmlNode.) |
| ParentNode | Gets the parent of this node (for nodes that can have parents).(Inherited from XmlNode.) |
| Prefix | Gets or sets the namespace prefix of this node.(Inherited from XmlNode.) |
| PreviousSibling | Gets the node immediately preceding this node.(Inherited from XmlLinkedNode.) |
| SchemaInfo | Gets the post schema validation infoset that has been assigned to this node as a result of schema validation.(Inherited from XmlNode.) |
| Standalone | Gets or sets the value of the standalone attribute. |
| Value | Overridden. Gets or sets the value of the XmlDeclaration. |
| Version | Gets the XML version of the document. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| AppendChild | Adds the specified node to the end of the list of child nodes, of this node. (Inherited from XmlNode.) |
| Clone | Creates a duplicate of this node. (Inherited from XmlNode.) |
| CloneNode | Overridden. Creates a duplicate of this node. |
| CreateNavigator | Creates an XPathNavigator for navigating this object. (Inherited from XmlNode.) |
| Equals | Overloaded. Determines whether two Object instances are equal. (Inherited from Object.) |
| GetEnumerator | Provides support for the for each style iteration over the nodes in the XmlNode. (Inherited from XmlNode.) |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) |
| GetNamespaceOfPrefix | Looks up the closest xmlns declaration for the given prefix that is in scope for the current node and returns the namespace URI in the declaration. (Inherited from XmlNode.) |
| GetPrefixOfNamespace | Looks up the closest xmlns declaration for the given namespace URI that is in scope for the current node and returns the prefix defined in that declaration. (Inherited from XmlNode.) |
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
| InsertAfter | Inserts the specified node immediately after the specified reference node. (Inherited from XmlNode.) |
| InsertBefore | Inserts the specified node immediately before the specified reference node. (Inherited from XmlNode.) |
| Normalize | Puts all XmlText nodes in the full depth of the sub-tree underneath this XmlNode into a "normal" form where only markup (that is, tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes. (Inherited from XmlNode.) |
| PrependChild | Adds the specified node to the beginning of the list of child nodes for this node. (Inherited from XmlNode.) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object.) |
| RemoveAll | Removes all the child nodes and/or attributes of the current node. (Inherited from XmlNode.) |
| RemoveChild | Removes specified child node. (Inherited from XmlNode.) |
| ReplaceChild | Replaces the child node oldChild with newChild node. (Inherited from XmlNode.) |
| SelectNodes | Overloaded. Selects a list of nodes matching the XPath expression. (Inherited from XmlNode.) |
| SelectSingleNode | Overloaded. Selects the first XmlNode that matches the XPath expression. (Inherited from XmlNode.) |
| Supports | Test if the DOM implementation implements a specific feature. (Inherited from XmlNode.) |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
| WriteContentTo | Overridden. Saves the children of the node to the specified XmlWriter. Because XmlDeclaration nodes do not have children, this method has no effect. |
| WriteTo | Overridden. Saves the node to the specified XmlWriter. |
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Reference
XmlDeclaration ClassSystem.Xml Namespace
CreateXmlDeclaration