System.Xml.XmlDocument: Method Members

The methods of System.Xml.XmlDocument are listed below. For a list of all members, see the XmlDocument Members list.

See Also: Inherited members from System.Xml.XmlNode

Public Methods

override
CloneNode(bool) : XmlNode

Creates a duplicate of this node.

CreateAttribute(string) : XmlAttribute

Creates an System.Xml.XmlAttribute with the specified XmlDocument.Name.

CreateAttribute(string, string) : XmlAttribute

Creates an System.Xml.XmlAttribute with the specified qualified name and XmlNode.NamespaceURI.

CreateAttribute(string, string, string) : XmlAttribute

Creates an System.Xml.XmlAttribute with the specified XmlNode.Prefix, XmlDocument.LocalName, and XmlNode.NamespaceURI.

CreateCDataSection(string) : XmlCDataSection

Creates an System.Xml.XmlCDataSection containing the specified data.

CreateComment(string) : XmlComment

Creates an System.Xml.XmlComment containing the specified data.

CreateDocumentFragment() : XmlDocumentFragment

Creates an System.Xml.XmlDocumentFragment.

CreateDocumentType(string, string, string, string) : XmlDocumentType

Returns a new System.Xml.XmlDocumentType object.

CreateElement(string) : XmlElement

Creates an element with the specified name.

CreateElement(string, string) : XmlElement

Creates an System.Xml.XmlElement with the qualified name and XmlNode.NamespaceURI.

CreateElement(string, string, string) : XmlElement

Creates an element with the specified XmlNode.Prefix, XmlDocument.LocalName, and XmlNode.NamespaceURI.

CreateEntityReference(string) : XmlEntityReference

Creates an System.Xml.XmlEntityReference with the specified name.

override
CreateNavigator() : System.Xml.XPath.XPathNavigator

Creates a new System.Xml.XPath.XPathNavigator object for navigating this document.

CreateNode(string, string, string) : XmlNode

Creates an System.Xml.XmlNode with the specified node type, XmlDocument.Name, and XmlNode.NamespaceURI.

CreateNode(XmlNodeType, string, string) : XmlNode

Creates an System.Xml.XmlNode with the specified System.Xml.XmlNodeType, XmlDocument.Name, and XmlNode.NamespaceURI.

CreateNode(XmlNodeType, string, string, string) : XmlNode

Creates a System.Xml.XmlNode with the specified System.Xml.XmlNodeType, XmlNode.Prefix, XmlDocument.Name, and XmlNode.NamespaceURI.

CreateProcessingInstruction(string, string) : XmlProcessingInstruction

Creates an System.Xml.XmlProcessingInstruction with the specified name and data.

CreateSignificantWhitespace(string) : XmlSignificantWhitespace

Creates an System.Xml.XmlSignificantWhitespace node.

CreateTextNode(string) : XmlText

Creates an System.Xml.XmlText with the specified text.

CreateWhitespace(string) : XmlWhitespace

Creates an System.Xml.XmlWhitespace node.

CreateXmlDeclaration(string, string, string) : XmlDeclaration

Creates an System.Xml.XmlDeclaration node with the specified values.

GetElementById(string) : XmlElement

Gets the System.Xml.XmlElement with the specified ID.

GetElementsByTagName(string) : XmlNodeList

Returns an System.Xml.XmlNodeList containing a list of all descendant elements that match the specified XmlDocument.Name.

GetElementsByTagName(string, string) : XmlNodeList

Returns an System.Xml.XmlNodeList containing a list of all descendant elements that match the specified XmlDocument.LocalName and XmlNode.NamespaceURI.

ImportNode(XmlNode, bool) : XmlNode

Imports a node from another document to the current document.

Load(System.IO.Stream)

Loads the XML document from the specified stream.

Load(System.IO.TextReader)

Loads the XML document from the specified System.IO.TextReader.

Load(string)

Loads the XML document from the specified URL.

Load(XmlReader)

Loads the XML document from the specified System.Xml.XmlReader.

LoadXml(string)

Loads the XML document from the specified string.

ReadNode(XmlReader) : XmlNode

Creates an System.Xml.XmlNode object based on the information in the System.Xml.XmlReader. The reader must be positioned on a node or attribute.

Save(System.IO.Stream)

Saves the XML document to the specified stream.

Save(System.IO.TextWriter)

Saves the XML document to the specified System.IO.TextWriter.

Save(string)

Saves the XML document to the specified file.

Save(XmlWriter)

Saves the XML document to the specified System.Xml.XmlWriter.

Validate(System.Xml.Schema.ValidationEventHandler)

Validates the System.Xml.XmlDocument against the XML Schema Definition Language (XSD) schemas contained in the XmlDocument.Schemas property.

Validate(System.Xml.Schema.ValidationEventHandler, XmlNode)

Validates the System.Xml.XmlNode object specified against the XML Schema Definition Language (XSD) schemas in the XmlDocument.Schemas property.

override
WriteContentTo(XmlWriter)

Saves all the children of the XmlDocument node to the specified System.Xml.XmlWriter.

override
WriteTo(XmlWriter)

Saves the XmlDocument node to the specified System.Xml.XmlWriter.

Protected Methods

CreateDefaultAttribute(string, string, string) : XmlAttribute

Creates a default attribute with the specified prefix, local name and namespace URI.

CreateNavigator(XmlNode) : System.Xml.XPath.XPathNavigator

Creates an System.Xml.XPath.XPathNavigator object for navigating this document positioned on the System.Xml.XmlNode specified.