Export (0) Print
Expand All

XmlDocument Members

XmlDocument overview

Public Constructors

public constructorXmlDocument Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the XmlDocument class.

Public Properties

public propertyAttributes (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets an XmlAttributeCollection containing the attributes of this node.
public propertyBaseURI

Supported by the .NET Compact Framework.

Overridden. Gets the base URI of the current node.
public propertyChildNodes (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets all the child nodes of the node.
public propertyDocumentElement

Supported by the .NET Compact Framework.

Gets the root XmlElement for the document.
public propertyDocumentType Gets the node containing the DOCTYPE declaration.
public propertyFirstChild (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets the first child of the node.
public propertyHasChildNodes (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets a value indicating whether this node has any child nodes.
public propertyImplementation

Supported by the .NET Compact Framework.

Gets the XmlImplementation object for the current document.
public propertyInnerText (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets or sets the concatenated values of the node and all its child nodes.
public propertyInnerXml

Supported by the .NET Compact Framework.

Overridden. Gets or sets the markup representing the children of the current node.
public propertyIsReadOnly

Supported by the .NET Compact Framework.

Overridden. Gets a value indicating whether the current node is read-only.
public propertyItem (inherited from XmlNode) Overloaded. Gets the specified child element.

In C#, this property is the indexer for the XmlDocument class.

public propertyLastChild (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets the last child of the node.
public propertyLocalName

Supported by the .NET Compact Framework.

Overridden. Gets the local name of the node.
public propertyName

Supported by the .NET Compact Framework.

Overridden. Gets the qualified name of the node.
public propertyNamespaceURI (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets the namespace URI of this node.
public propertyNameTable

Supported by the .NET Compact Framework.

Gets the XmlNameTable associated with this implementation.
public propertyNextSibling (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets the node immediately following this node.
public propertyNodeType

Supported by the .NET Compact Framework.

Overridden. Gets the type of the current node.
public propertyOuterXml (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets the markup representing this node and all its child nodes.
public propertyOwnerDocument

Supported by the .NET Compact Framework.

Overridden. Gets the XmlDocument to which the current node belongs.
public propertyParentNode (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets the parent of this node (for nodes that can have parents).
public propertyPrefix (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets or sets the namespace prefix of this node.
public propertyPreserveWhitespace

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to preserve white space.
public propertyPreviousSibling (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets the node immediately preceding this node.
public propertyValue (inherited from XmlNode)

Supported by the .NET Compact Framework.

Gets or sets the value of the node.
public propertyXmlResolver

Supported by the .NET Compact Framework.

Sets the XmlResolver to use for resolving external resources.

Public Methods

public methodAppendChild (inherited from XmlNode)

Supported by the .NET Compact Framework.

Adds the specified node to the end of the list of child nodes, of this node.
public methodClone (inherited from XmlNode)

Supported by the .NET Compact Framework.

Creates a duplicate of this node.
public methodCloneNode

Supported by the .NET Compact Framework.

Overridden. Creates a duplicate of this node.
public methodCreateAttribute

Supported by the .NET Compact Framework.

Overloaded. Creates an XmlAttribute with the specified name.
public methodCreateCDataSection

Supported by the .NET Compact Framework.

Creates an XmlCDataSection containing the specified data.
public methodCreateComment

Supported by the .NET Compact Framework.

Creates an XmlComment containing the specified data.
public methodCreateDocumentFragment

Supported by the .NET Compact Framework.

Creates an XmlDocumentFragment.
public methodCreateDocumentType Returns a new XmlDocumentType object.
public methodCreateElement

Supported by the .NET Compact Framework.

Overloaded. Creates an XmlElement.
public methodCreateEntityReference

Supported by the .NET Compact Framework.

Creates an XmlEntityReference with the specified name.
public methodCreateNavigator (inherited from XmlNode) Creates an XPathNavigator for navigating this object.
public methodCreateNode

Supported by the .NET Compact Framework.

Overloaded. Creates an XmlNode.
public methodCreateProcessingInstruction

Supported by the .NET Compact Framework.

Creates an XmlProcessingInstruction with the specified name and data.
public methodCreateSignificantWhitespace

Supported by the .NET Compact Framework.

Creates an XmlSignificantWhitespace node.
public methodCreateTextNode

Supported by the .NET Compact Framework.

Creates an XmlText with the specified text.
public methodCreateWhitespace

Supported by the .NET Compact Framework.

Creates an XmlWhitespace node.
public methodCreateXmlDeclaration

Supported by the .NET Compact Framework.

Creates an XmlDeclaration node with the specified values.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetElementById Gets the XmlElement with the specified ID.
public methodGetElementsByTagName

Supported by the .NET Compact Framework.

Overloaded. Returns an XmlNodeList containing a list of all descendant elements that match the specified name.
public methodGetEnumerator (inherited from XmlNode)

Supported by the .NET Compact Framework.

Provides support for the for each style iteration over the nodes in the XmlNode.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetNamespaceOfPrefix (inherited from XmlNode)

Supported by the .NET Compact Framework.

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.
public methodGetPrefixOfNamespace (inherited from XmlNode)

Supported by the .NET Compact Framework.

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.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodImportNode

Supported by the .NET Compact Framework.

Imports a node from another document to the current document.
public methodInsertAfter (inherited from XmlNode)

Supported by the .NET Compact Framework.

Inserts the specified node immediately after the specified reference node.
public methodInsertBefore (inherited from XmlNode)

Supported by the .NET Compact Framework.

Inserts the specified node immediately before the specified reference node.
public methodLoad

Supported by the .NET Compact Framework.

Overloaded. Loads the specified XML data.
Note   The Load method always preserves significant white space. The PreserveWhitespace property determines whether or not white space is preserved. The default is false, white space is not preserved.
public methodLoadXml

Supported by the .NET Compact Framework.

Loads the XML document from the specified string.
public methodNormalize (inherited from XmlNode)

Supported by the .NET Compact Framework.

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.
public methodPrependChild (inherited from XmlNode)

Supported by the .NET Compact Framework.

Adds the specified node to the beginning of the list of child nodes for this node.
public methodReadNode

Supported by the .NET Compact Framework.

Creates an XmlNode object based on the information in the XmlReader. The reader must be positioned on a node or attribute.
public methodRemoveAll (inherited from XmlNode)

Supported by the .NET Compact Framework.

Removes all the child nodes and/or attributes of the current node.
public methodRemoveChild (inherited from XmlNode)

Supported by the .NET Compact Framework.

Removes specified child node.
public methodReplaceChild (inherited from XmlNode)

Supported by the .NET Compact Framework.

Replaces the child node oldChild with newChild node.
public methodSave

Supported by the .NET Compact Framework.

Overloaded. Saves the XML document to the specified location.
public methodSelectNodes (inherited from XmlNode) Overloaded. Selects a list of nodes matching the XPath expression.
public methodSelectSingleNode (inherited from XmlNode) Overloaded. Selects the first XmlNode that matches the XPath expression.
public methodSupports (inherited from XmlNode)

Supported by the .NET Compact Framework.

Test if the DOM implementation implements a specific feature.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodWriteContentTo

Supported by the .NET Compact Framework.

Overridden. Saves all the children of the XmlDocument node to the specified XmlWriter.
public methodWriteTo

Supported by the .NET Compact Framework.

Overridden. Saves the XmlDocument node to the specified XmlWriter.

Public Events

public eventNodeChanged Occurs when the Value of a node belonging to this document has been changed.
public eventNodeChanging Occurs when the Value of a node belonging to this document is about to be changed.
public eventNodeInserted Occurs when a node belonging to this document has been inserted into another node.
public eventNodeInserting Occurs when a node belonging to this document is about to be inserted into another node.
public eventNodeRemoved Occurs when a node belonging to this document has been removed from its parent.
public eventNodeRemoving Occurs when a node belonging to this document is about to be removed from the document.

Protected Constructors

protected constructorXmlDocument Constructor Overloaded. Initializes a new instance of the XmlDocument class.

Protected Methods

protected methodCreateDefaultAttribute Creates a default attribute with the specified prefix, local name and namespace URI.
protected methodCreateNavigator Overloaded. Creates a new XPathNavigator object for navigating this document. See XmlNode.CreateNavigator for an example using this method.

This method is a Microsoft extension to the Document Object Model (DOM).

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

XmlDocument Class | System.Xml Namespace

Show:
© 2014 Microsoft