XML DOM Methods

 

This section describes DOM method syntax.

MethodDescription
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.
addAdds a new schema to the schema collection and associates the given namespace URI with the specified schema.
addCollectionAdds schemas from another collection into the current collection and replaces any schemas that collide on the same namespace URI.
addObjectAdds objects to a style sheet.
addParameterAdds parameters to a style sheet.
appendChildAppends a new child node as the last child of the node.
appendDataAppends the supplied string to the existing string data.
cloneClones a copy of the current IXMLDOMSelection, with the same position and context.
cloneNodeClones a new node.
createAttributeCreates a new attribute with the specified name.
createCDATASectionCreates a CDATA section node that contains the supplied data.
createCommentCreates a comment node that contains the supplied data.
createDocumentFragmentCreates an empty IXMLDOMDocumentFragment object.
createElementCreates an element node using the specified name.
createEntityReferenceCreates a new EntityReference object.
createNodeCreates a node using the supplied type, name, and namespace.
createProcessingInstructionCreates a processing instruction node that contains the supplied target and data.
createProcessorCreates a rental-model IXSLProcessor object that will use this template.
createTextNodeCreates a text node that contains the supplied data.
errorParametersReturns the parameter value for a given index.
deleteDataDeletes specified data.
DllSetPropertySets a global property for the DLL.
getReturns 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
getAttributeGets the value of the attribute.
getAttributeNodeGets the attribute node.
getDeclarationReturns 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.
getNamedItemRetrieves the attribute with the specified name.
getOptionReturns the value of the specified option.
getProperty (IXMLDOMDocument2)Returns the default properties.
getProperty (IXMLDOMSelection)Returns a property.
getQualifiedItem MethodReturns 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 MethodReturns an ISchema object.
hasChildNodesProvides a fast way to determine whether a node has children.
hasFeatureIndicates support for the specified feature.
importNodeClones a node from a different DOM object.
insertBeforeInserts a child node to the left of the specified node or at the end of the list.
insertDataInserts 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.
loadLoads an XML document from the specified location.
loadXMLLoads an XML document using the supplied string.
matchesChecks 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.
nodeFromIDReturns the node that matches the ID attribute.
normalizeNormalizes 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.
peekNodeGets the next node that the nextNode method will return without advancing the list position.
removeRemoves the specified namespace from a collection.
removeAllRemoves all the nodes from the collection described by the IXMLDOMSelection.
removeAttributeRemoves or replaces the named attribute.
removeAttributeNodeRemoves the specified attribute from this element.
removeChildRemoves the specified child node from the list of children and returns it.
removeNamedItemRemoves an attribute from the collection.
removeNextRemoves the next node.
removeQualifiedItemRemoves the attribute with the specified namespace and attribute name.
replaceChildReplaces the specified old child node with the supplied new child node.
replaceDataReplaces 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.
saveSaves an XML document to the specified location.
selectNodesApplies the specified pattern-matching operation to this node's context and returns the list of matching nodes as IXMLDOMNodeList.
selectSingleNodeApplies 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.
setAttributeSets the value of the named attribute.
setAttributeNodeSets or updates the supplied attribute node on this element.
setNamedItemAdds the supplied node to the collection.
setOptionSets the specified option.
setPropertySets the SelectionLanguage, ServerHTTPRequest, SelectionNamespaces or NewParser internal properties (flags).
setProxySets the proxy configuration.
setProxyCredentialsSets the proxy authentication credentials.
setRequestHeader (IXMLHTTPRequest)Specifies the name of an HTTP header.
setRequestHeader (ServerXMLHTTP/IServerXMLHTTPRequest)Specifies the name of an HTTP header.
setStartModePerforms a subset of a larger XSLT transformation by selecting the XSLT mode with which to start.
setTimeoutsSpecifies timeout settings for resolving the domain name, establishing the connection to the server, sending the data, and receiving the response.
splitTextSplits 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.
substringDataRetrieves a substring of the full string from the specified range.
transformStarts the transformation process or resumes a previously failed transformation.
transformNodeProcesses this node and its children using the supplied XSL Transformations (XSLT) style sheet and returns the resulting transformation.
transformNodeToObjectProcesses this node and its children using the supplied XSLT style sheet, and returns the resulting transformation in the supplied object.
validatePerforms run-time validation on the currently loaded document using the currently loaded DTD, schema, or schema collection.
validate (IXMLDOMSchemaCollection2/XMLDOMSchemaCollectionPerforms run-time validation on the documents in the schema cache that have not been compiled and validated.
validateNodeValidates a specified DOM fragment.
waitForResponseAllows the requesting server to suspend execution while waiting for an asynchronous send operation to complete.
System_CAPS_ICON_note.jpg 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.

Show: