Compartilhar via


XML DOM Methods

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The following table shows the XML DOM methods, with a description of the purpose of each.

Programming element Description

abort Method (DOMDocument)

This method aborts an asynchronous download in progress.

add Method

Adds a new schema to the schema collection and associates the given namespace Uniform Resource Identifier (URI) with the specified schema.

addCollection Method

Adds schemas from another collection into the current collection and replaces any schemas that collide on the same namespace Uniform Resource Identifier (URI).

appendChild Method

Appends newChild as the last child of the node.

appendData Method

Appends the supplied string to the existing string data.

clone Method

Clones a copy of the current IXMLDOMSelection, with the same position and context.

cloneNode Method

Clones a new node.

createAttribute Method

Creates a new attribute with the specified name.

createCDATASection Method

Creates a CDATA section node that contains the supplied data.

createComment Method

Creates a comment node that contains the supplied data.

createDocumentFragment Method

Creates an empty IXMLDOMDocumentFragment object.

createElement Method

Creates an element node using the specified name.

createEntityReference Method

Creates a new EntityReference object.

createNode Method

Creates a node using the supplied type, name, and namespace.

createProcessingInstruction Method

Creates a processing instruction node that contains the supplied target and data.

createTextNode Method

Creates a text node that contains the supplied data.

deleteData Method

Deletes specified data.

get Method

Returns a read-only XML Document Object Model (DOM) node that contains the <Schema> element.

getAttribute Method

Retrieves the value of the attribute.

getAttributeNode Method

Retrieves the attribute node.

getElementsByTagName Method (DOMDocument)

Returns a collection of elements that have the specified name.

getElementsByTagName Method (IXMLDOMElement)

Returns a list of all descendant elements that match the supplied name.

getNamedItem Method

Retrieves the attribute with the specified name.

getProperty Method (IXMLDOMDocument2)

Returns the default properties.

getProperty Method (IXMLDOMSelection)

Returns a property.

getQualifiedItem Method

Returns the attribute with the specified namespace and attribute name.

hasChildNodes Method

Returns True if this node has children.

hasFeature Method

Returns True if the specified version of the implementation supports the specified feature.

insertBefore Method

Inserts a child node to the left of the specified node or at the end of the list.

insertData Method

Inserts a string at the specified offset.

item Method (IXMLDOMNamedNodeMap)

Allows random access to individual nodes within the collection.

item Method (IXMLDOMNodeList)

Allows random access to individual nodes within the collection.

load Method

Loads an XML document from the specified location.

loadXML Method

Loads an XML document using the supplied string.

matches Method

Checks if the node that is passed is contained in the current collection.

nextNode Method (IXMLDOMNamedNodeMap)

Returns the next node in the collection.

nextNode Method (IXMLDOMNodeList)

Returns the next node in the collection.

nodeFromID Method

Returns the node that matches the ID attribute.

normalize Method

Normalizes all descendant elements by combining two or more adjacent text nodes into one unified text node.

peekNode Method

Gets the next node that nextNode Method (IXMLDOMNodeList) will return without advancing the list position.

remove Method

Removes the specified namespace from a collection.

removeAll Method

Removes all the nodes from the collection described by the IXMLDOMSelection.

removeAttribute Method

Removes or replaces the named attribute.

removeAttributeNode Method

Removes the specified attribute from this element.

removeChild Method

Removes the specified child node from the list of children and returns it.

removeNamedItem Method

Removes an attribute from the collection.

removeNext Method

Removes the next node.

removeQualifiedItem Method

Removes the attribute with the specified namespace and attribute name.

replaceChild Method

Replaces the specified old child node with the supplied new child node.

replaceData Method

Replaces the specified number of characters with the supplied string.

reset Method (IXMLDOMNamedNodeMap)

Resets the iterator.

reset Method (IXMLDOMNodeList)

Resets the iterator.

save Method

Saves an XML document to the specified location.

selectNodes Method

Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as IXMLDOMNodeList.

selectSingleNode Method

Applies the specified pattern-matching operation to this node's context and returns the first matching node.

setAttribute Method

Sets the value of the named attribute.

setAttributeNode Method

Sets or updates the supplied attribute node on this element.

setNamedItem Method

Adds the supplied node to the collection.

setProperty Method

Used for setting the SelectionLanguageServerHTTPRequest and SelectionNamespaces internal properties (flags).

setStartMode Method

Performs subsets of larger Extensible Stylesheet Language Transformations (XSLT) by selecting the XSLT mode with which to start.

splitText Method

Splits this text node into two text nodes at the specified offset and inserts the new text node into the tree as a sibling that immediately follows this node.

substringData Method

Retrieves a substring of the full string from the specified range.

transformNode Method

Processes this node and its children using the supplied Extensible Stylesheet Language Transformations (XSLT) style sheet and returns the resulting transformation.

transformNodeToObject Method

Processes this node and its children using the supplied Extensible Stylesheet Language Transformations (XSLT) style sheet and returns the resulting transformation.

validate Method

Performs run-time validation on the currently loaded document using the currently loaded document type definition (DTD), schema, or schema collection.

See Also

Reference

XML DOM Reference

Other Resources

XML Core Services and Document Object Model