This documentation is archived and is not being maintained.

XmlElement Methods

The methods of the XmlElement class are listed here. For a complete list of XmlElement class members, see the XmlElement Members topic.

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 methodCreateNavigator (inherited from XmlNode) Creates an XPathNavigator for navigating this object.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetAttribute

Supported by the .NET Compact Framework.

Overloaded. Returns the attribute value for the specified attribute.
public methodGetAttributeNode

Supported by the .NET Compact Framework.

Overloaded. Return the specified XmlAttribute.
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 methodHasAttribute

Supported by the .NET Compact Framework.

Overloaded. Determines whether the current node has the specified attribute.
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 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 methodRemoveAll

Supported by the .NET Compact Framework.

Overridden. Removes all specified attributes and children of the current node. Default attributes are not removed.
public methodRemoveAllAttributes

Supported by the .NET Compact Framework.

Removes all specified attributes from the element. Default attributes are not removed.
public methodRemoveAttribute

Supported by the .NET Compact Framework.

Overloaded. Removes the specified attribute.
Note   If the removed attribute has a default value, it is immediately replaced.
public methodRemoveAttributeAt

Supported by the .NET Compact Framework.

Removes the attribute node with the specified index from the element.
Note   If the removed attribute has a default value, it is immediately replaced.
public methodRemoveAttributeNode

Supported by the .NET Compact Framework.

Overloaded. Removes an XmlAttribute.
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 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 methodSetAttribute

Supported by the .NET Compact Framework.

Overloaded. Sets the value of the specified attribute.
public methodSetAttributeNode

Supported by the .NET Compact Framework.

Overloaded. Adds a new XmlAttribute.
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 node to the specified XmlWriter.
public methodWriteTo

Supported by the .NET Compact Framework.

Overridden. Saves the current node to the specified XmlWriter.

Protected Methods

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

XmlElement Class | System.Xml Namespace

Show: