XML DOM Methods

 

This section describes DOM method syntax.

Method Description
abort (DOMDocument) Aborts an asynchronous download in progress.
abort (IXMLHTTPRequest) Cancels the current HTTP request.
abort (ServerXMLHTTP/IServerXMLHTTPRequest) Cancels the current HTTP request.
Abort (IXMLHTTPRequest2) Cancels the current HTTP request.
add Adds a new schema to the schema collection and associates the given namespace URI with the specified schema.
addCollection Adds schemas from another collection into the current collection and replaces any schemas that collide on the same namespace URI.
addObject Adds objects to a style sheet.
addParameter Adds parameters to a style sheet.
appendChild Appends a new child node as the last child of the node.
appendData Appends the supplied string to the existing string data.
clone Clones a copy of the current IXMLDOMSelection, with the same position and context.
cloneNode Clones a new node.
createAttribute Creates a new attribute with the specified name.
createCDATASection Creates a CDATA section node that contains the supplied data.
createComment Creates a comment node that contains the supplied data.
createDocumentFragment Creates an empty IXMLDOMDocumentFragment object.
createElement Creates an element node using the specified name.
createEntityReference Creates a new EntityReference object.
createNode Creates a node using the supplied type, name, and namespace.
createProcessingInstruction Creates a processing instruction node that contains the supplied target and data.
createProcessor Creates a rental-model IXSLProcessor object that will use this template.
createTextNode Creates a text node that contains the supplied data.
errorParameters Returns the parameter value for a given index.
deleteData Deletes specified data.
DllSetProperty Sets a global property for the DLL.
get Returns a read-only XML Document Object Model (DOM) node that contains the <Schema> element.
getAllResponseHeaders (IXMLHTTPRequest) Retrieves the values of all the HTTP headers.
getAllResponseHeaders (ServerXMLHTTP/IServerXMLHTTPRequest) Retrieves the values of all the HTTP headers.
GetAllResponseHeaders (IXMLHTTPRequest2) bf321025-07b5-4b1e-b2e1-3b38dc172b3d
getAttribute Gets the value of the attribute.
getAttributeNode Gets the attribute node.
getDeclaration Returns the declaration of the DOM node that is sent to the function.
getElementsByTagName (DOMDocument) Returns a collection of elements that have the specified name.
getElementsByTagName (IXMLDOMElement) Returns a list of all descendant elements that match the supplied name.
getNamedItem Retrieves the attribute with the specified name.
getOption Returns the value of the specified option.
getProperty (IXMLDOMDocument2) Returns the default properties.
getProperty (IXMLDOMSelection) Returns a property.
getQualifiedItem Method Returns the attribute with the specified namespace and attribute name.
getResponseHeader (IXMLHTTPRequest) Retrieves the value of an HTTP header from the response body.
getResponseHeader (ServerXMLHTTP/IServerXMLHTTPRequest) Retrieves the value of an HTTP header from the response body.
GetResponseHeader (IXMLHTTPRequest2) Retrieves the value of an HTTP header from the response body.
getSchema Method Returns an ISchema object.
hasChildNodes Provides a fast way to determine whether a node has children.
hasFeature Indicates support for the specified feature.
importNode Clones a node from a different DOM object.
insertBefore Inserts a child node to the left of the specified node or at the end of the list.
insertData Inserts a string at the specified offset.
item (IXMLDOMNodeList) Allows random access to individual nodes within the collection.
item (IXMLDOMNamedNodeMap) Allows random access to individual nodes within the collection.
load Loads an XML document from the specified location.
loadXML Loads an XML document using the supplied string.
matches Checks if the node that is passed is contained in the current collection.
nextNode (IXMLDOMNodeList) Returns the next node in the collection.
nextNode (IXMLDOMNamedNodeMap) Returns the next node in the collection.
nodeFromID Returns the node that matches the ID attribute.
normalize Normalizes all descendant elements by combining two or more adjacent text nodes into one unified text node.
open (IXMLHTTPRequest) Initializes an MSXML2.XMLHTTP request and specifies the method, URL, and authentication information for the request.
open (ServerXMLHTTP/IServerXMLHTTPRequest) Initializes a request and specifies the method, URL, and authentication information for the request.
Open (IXMLHTTPRequest2) Initializes a request and specifies the method, URL, and authentication information for the request.
peekNode Gets the next node that the nextNode method will return without advancing the list position.
remove Removes the specified namespace from a collection.
removeAll Removes all the nodes from the collection described by the IXMLDOMSelection.
removeAttribute Removes or replaces the named attribute.
removeAttributeNode Removes the specified attribute from this element.
removeChild Removes the specified child node from the list of children and returns it.
removeNamedItem Removes an attribute from the collection.
removeNext Removes the next node.
removeQualifiedItem Removes the attribute with the specified namespace and attribute name.
replaceChild Replaces the specified old child node with the supplied new child node.
replaceData Replaces the specified number of characters with the supplied string.
reset (IXMLDOMNamedNodeMap) Resets the iterator.
reset (IXMLDOMNodeList) Resets the iterator.
reset (IXMLDOMParseErrorCollection) Resets the internal position to start, so that the next method will return the first error in the list.
reset (IXSLProcessor) Resets the state of the processor to the state it was in prior to calling the transform method.
save Saves an XML document to the specified location.
selectNodes Applies the specified pattern-matching operation to this node's context and returns the list of matching nodes as IXMLDOMNodeList.
selectSingleNode Applies the specified pattern-matching operation to this node's context and returns the first matching node.
send (IXMLHTTPRequest) Sends an HTTP request to the server and receives a response.
send (ServerXMLHTTP/IServerXMLHTTPRequest) Sends an HTTP request to the server and receives a response.
Send (IXMLHTTPRequest2) Sends an HTTP request to the server and receives a response.
setAttribute Sets the value of the named attribute.
setAttributeNode Sets or updates the supplied attribute node on this element.
setNamedItem Adds the supplied node to the collection.
setOption Sets the specified option.
setProperty Sets the SelectionLanguage, ServerHTTPRequest, SelectionNamespaces or NewParser internal properties (flags).
setProxy Sets the proxy configuration.
setProxyCredentials Sets the proxy authentication credentials.
setRequestHeader (IXMLHTTPRequest) Specifies the name of an HTTP header.
setRequestHeader (ServerXMLHTTP/IServerXMLHTTPRequest) Specifies the name of an HTTP header.
setStartMode Performs a subset of a larger XSLT transformation by selecting the XSLT mode with which to start.
setTimeouts Specifies timeout settings for resolving the domain name, establishing the connection to the server, sending the data, and receiving the response.
splitText 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 Retrieves a substring of the full string from the specified range.
transform Starts the transformation process or resumes a previously failed transformation.
transformNode Processes this node and its children using the supplied XSL Transformations (XSLT) style sheet and returns the resulting transformation.
transformNodeToObject Processes this node and its children using the supplied XSLT style sheet, and returns the resulting transformation in the supplied object.
validate Performs run-time validation on the currently loaded document using the currently loaded DTD, schema, or schema collection.
validate (IXMLDOMSchemaCollection2/XMLDOMSchemaCollection Performs run-time validation on the documents in the schema cache that have not been compiled and validated.
validateNode Validates a specified DOM fragment.
waitForResponse Allows the requesting server to suspend execution while waiting for an asynchronous send operation to complete.

Note

Some methods listed here are only implemented for more recent versions of MSXML. To determine the availability of a specific method, see the Versioning section in the reference topic for that method.