XmlDocument Methods

The XmlDocument type exposes the following members.

  Name Description
Public method AppendChild Adds the specified node to the end of the list of child nodes, of this node. (Inherited from XmlNode.)
Public method Clone Creates a duplicate of this node. (Inherited from XmlNode.)
Public method CloneNode Creates a duplicate of this node. (Overrides XmlNode.CloneNode(Boolean).)
Public method CreateAttribute(String) Creates an XmlAttribute with the specified Name.
Public method CreateAttribute(String, String) Creates an XmlAttribute with the specified qualified name and NamespaceURI.
Public method CreateAttribute(String, String, String) Creates an XmlAttribute with the specified Prefix, LocalName, and NamespaceURI.
Public method CreateCDataSection Creates an XmlCDataSection containing the specified data.
Public method CreateComment Creates an XmlComment containing the specified data.
Protected method CreateDefaultAttribute Creates a default attribute with the specified prefix, local name and namespace URI.
Public method CreateDocumentFragment Creates an XmlDocumentFragment.
Public method CreateDocumentType Returns a new XmlDocumentType object.
Public method CreateElement(String) Creates an element with the specified name.
Public method CreateElement(String, String) Creates an XmlElement with the qualified name and NamespaceURI.
Public method CreateElement(String, String, String) Creates an element with the specified Prefix, LocalName, and NamespaceURI.
Public method CreateEntityReference Creates an XmlEntityReference with the specified name.
Public method CreateNavigator() Creates a new XPathNavigator object for navigating this document. (Overrides XmlNode.CreateNavigator().)
Protected method CreateNavigator(XmlNode) Creates an XPathNavigator object for navigating this document positioned on the XmlNode specified.
Public method CreateNode(String, String, String) Creates an XmlNode with the specified node type, Name, and NamespaceURI.
Public method CreateNode(XmlNodeType, String, String) Creates an XmlNode with the specified XmlNodeType, Name, and NamespaceURI.
Public method CreateNode(XmlNodeType, String, String, String) Creates a XmlNode with the specified XmlNodeType, Prefix, Name, and NamespaceURI.
Public method CreateProcessingInstruction Creates an XmlProcessingInstruction with the specified name and data.
Public method CreateSignificantWhitespace Creates an XmlSignificantWhitespace node.
Public method CreateTextNode Creates an XmlText with the specified text.
Public method CreateWhitespace Creates an XmlWhitespace node.
Public method CreateXmlDeclaration Creates an XmlDeclaration node with the specified values.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetElementById Gets the XmlElement with the specified ID.
Public method GetElementsByTagName(String) Returns an XmlNodeList containing a list of all descendant elements that match the specified Name.
Public method GetElementsByTagName(String, String) Returns an XmlNodeList containing a list of all descendant elements that match the specified LocalName and NamespaceURI.
Public method GetEnumerator Get an enumerator that iterates through the child nodes in the current node. (Inherited from XmlNode.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method 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.)
Public method 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.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ImportNode Imports a node from another document to the current document.
Public method InsertAfter Inserts the specified node immediately after the specified reference node. (Inherited from XmlNode.)
Public method InsertBefore Inserts the specified node immediately before the specified reference node. (Inherited from XmlNode.)
Public method Load(Stream) Loads the XML document from the specified stream.
Public method Load(String) Loads the XML document from the specified URL.
Public method Load(TextReader) Loads the XML document from the specified TextReader.
Public method Load(XmlReader) Loads the XML document from the specified XmlReader.
Public method LoadXml Loads the XML document from the specified string.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method 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.)
Public method PrependChild Adds the specified node to the beginning of the list of child nodes for this node. (Inherited from XmlNode.)
Public method ReadNode Creates an XmlNode object based on the information in the XmlReader. The reader must be positioned on a node or attribute.
Public method RemoveAll Removes all the child nodes and/or attributes of the current node. (Inherited from XmlNode.)
Public method RemoveChild Removes specified child node. (Inherited from XmlNode.)
Public method ReplaceChild Replaces the child node oldChild with newChild node. (Inherited from XmlNode.)
Public method Save(Stream) Saves the XML document to the specified stream.
Public method Save(String) Saves the XML document to the specified file.
Public method Save(TextWriter) Saves the XML document to the specified TextWriter.
Public method Save(XmlWriter) Saves the XML document to the specified XmlWriter.
Public method SelectNodes(String) Selects a list of nodes matching the XPath expression. (Inherited from XmlNode.)
Public method SelectNodes(String, XmlNamespaceManager) Selects a list of nodes matching the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied XmlNamespaceManager. (Inherited from XmlNode.)
Public method SelectSingleNode(String) Selects the first XmlNode that matches the XPath expression. (Inherited from XmlNode.)
Public method SelectSingleNode(String, XmlNamespaceManager) Selects the first XmlNode that matches the XPath expression. Any prefixes found in the XPath expression are resolved using the supplied XmlNamespaceManager. (Inherited from XmlNode.)
Public method Supports Tests if the DOM implementation implements a specific feature. (Inherited from XmlNode.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Validate(ValidationEventHandler) Validates the XmlDocument against the XML Schema Definition Language (XSD) schemas contained in the Schemas property.
Public method Validate(ValidationEventHandler, XmlNode) Validates the XmlNode object specified against the XML Schema Definition Language (XSD) schemas in the Schemas property.
Public method WriteContentTo Saves all the children of the XmlDocument node to the specified XmlWriter. (Overrides XmlNode.WriteContentTo(XmlWriter).)
Public method WriteTo Saves the XmlDocument node to the specified XmlWriter. (Overrides XmlNode.WriteTo(XmlWriter).)
Top

  Name Description
Explicit interface implemetation Private method ICloneable.Clone For a description of this member, see XmlNode.Clone. (Inherited from XmlNode.)
Explicit interface implemetation Private method IEnumerable.GetEnumerator For a description of this member, see XmlNode.GetEnumerator. (Inherited from XmlNode.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft