System.Xml.XmlDocument Members

The members of System.Xml.XmlDocument are listed below.

See Also: Inherited members from System.Xml.XmlNode

Public Constructors

Initializes a new instance of the System.Xml.XmlDocument class.

Initializes a new instance of the XmlDocument class with the specified System.Xml.XmlNameTable.

Protected Constructors

Initializes a new instance of the XmlDocument class with the specified System.Xml.XmlImplementation.

Public Properties

[read-only]
override
BaseURIstring.

Gets the base URI of the current node.

[read-only]
DocumentElementXmlElement.

Gets the root System.Xml.XmlElement for the document.

[read-only]
DocumentTypeXmlDocumentType.

Gets the node containing the DOCTYPE declaration.

[read-only]
ImplementationXmlImplementation.

Gets the System.Xml.XmlImplementation object for the current document.

[write-only]
override
InnerTextstring.

Throws an InvalidOperationException in all cases.

override
InnerXmlstring.

Gets or sets the markup representing the children of the current node.

[read-only]
override
IsReadOnlybool.

Gets a value indicating whether the current node is read-only.

[read-only]
override
LocalNamestring.

Gets the local name of the node.

[read-only]
override
Namestring.

Gets the qualified name of the node.

[read-only]
NameTableXmlNameTable.

Gets the System.Xml.XmlNameTable associated with this implementation.

[read-only]
override
NodeTypeXmlNodeType.

Gets the type of the current node.

[read-only]
override
OwnerDocumentXmlDocument.

Gets the System.Xml.XmlDocument to which the current node belongs.

[read-only]
override
ParentNodeXmlNode.

Gets the parent node of this node (for nodes that can have parents).

PreserveWhitespacebool.

Gets or sets a value indicating whether to preserve white space in element content.

[read-only]
override
SchemaInfoSystem.Xml.Schema.IXmlSchemaInfo.

Returns the Post-Schema-Validation-Infoset (PSVI) of the node.

SchemasSystem.Xml.Schema.XmlSchemaSet.

Gets or sets the System.Xml.Schema.XmlSchemaSet object associated with this System.Xml.XmlDocument.

[write-only]
XmlResolverXmlResolver.

Sets the System.Xml.XmlResolver to use for resolving external resources.

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.

Public Events

NodeChanged

Occurs when the XmlNode.Value of a node belonging to this document has been changed.

NodeChanging

Occurs when the XmlNode.Value of a node belonging to this document is about to be changed.

NodeInserted

Occurs when a node belonging to this document has been inserted into another node.

NodeInserting

Occurs when a node belonging to this document is about to be inserted into another node.

NodeRemoved

Occurs when a node belonging to this document has been removed from its parent.

NodeRemoving

Occurs when a node belonging to this document is about to be removed from the document.

Explicitly Implemented Interface Members

System.Xml.IHasXmlChildNode.LastLinkedChildXmlLinkedNode. Documentation for this section has not yet been entered.