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.

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.

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.

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.

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.

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.

http://msdn.microsoft.com/en-us/library/ms757828(VS.85).aspx

 

XML DOM Properties

This section describes DOM property syntax.

Property Description

allErrors

Returns a  parseErrorCollection  object containing all errors and warnings found during validation. Read-only.

async

Specifies whether asynchronous download is permitted. Read/write.

attributes

Contains the list of attributes for this node. Read-only.

baseName

Returns the base name for the name qualified with the namespace. Read-only.

childNodes

Contains a node list containing the child nodes. Read-only.

context

Gets the node (subtree) that is applied to the selection. Read/write.

data (IXMLDOMCharacterData)

Stores the node data depending on the node type. Read/write.

data (IXMLDOMProcessingInstruction)

Retrieves and sets the content of the processing instruction, excluding the target. Read/write.

dataType

Specifies the data type for this node. Read/write.

definition

Returns the definition of the node in the document type definition (DTD) or schema. Read-only.

doctype

Contains the document type node that specifies the document type definition (DTD) for this document. Read-only.

documentElement

Contains the root element of the document. Read/write.

entities

Contains a list of the entities declared in the  <!DOCTYPE>  declaration. Read-only.

errorCode

Contains the error code of the last parse error. Read-only.

errorParametersCount

Returns the number of error parameters used in an error message. Read-only.

errorXPath

Rturns an XPath expression that locates the node where an error occurred. Read-only.

expr

Gets or sets the XML Path Language (XPath) expression. Read/write.

filepos

Contains the absolute file position where the error occurred. Read-only.

firstChild

Contains the first child of the node. Read-only.

implementation

Contains the  IXMLDOMImplementation  object for the document. Read-only.

input

Specifies which XML input tree to transform. Read/write.

item

Returns the item from the collection with the specified index.

lastChild

Returns the last child node. Read-only.

length (IXMLDOMCharacterData)

Specifies the length, in characters, of the data. Read-only.

length (IXMLDOMNamedNodeMap)

Specifies the number of items in the collection. Read-only.

length (IXMLDOMNodeList)

Specifies the number of items in the collection. Read-only.

length (IXMLDOMParseErrorCollection)

Returns the number of items in the error collection. Read-only.

length (XMLSchemaCache/IXMLSchemaCollection)

Specifies the number of namespaces currently in the collection. Read-only.

line

Specifies the line number that contains the error. Read-only.

linepos

Specifies the character position within the line where the error occurred. Read-only.

name (IXMLDOMAttribute)

Contains the attribute name. Read-only.

name (IXMLDOMDocumentType)

Contains the name of the document type. Read-only.

namespaces

Returns the list of namespaces used in the document as  XMLSchemaCache. Read-only.

namespaceURI (IXMLDOMNode)

Returns the Uniform Resource Identifier (URI) for the namespace. Read-only.

namespaceURI (XMLSchemaCache/IXMLDOMSchemaCollection)

Returns the namespace at the specified index. Read-only.

next

Returns the next item in the error collection object.

nextSibling

Contains the next sibling of the node in the parent's child list. Read-only.

nodeName

Returns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types. Read-only.

nodeType

Specifies the XML Document Object Model (DOM) node type, which determines valid values and whether the node can have child nodes. Read-only.

nodeTypedValue

Contains the node value expressed in its defined data type. Read/write

nodeTypeString

Returns the node type in string form. Read-only.

nodeValue

Contains the text associated with the node. Read/write.

notationName

Contains the notation name. Read-only.

notations

Contains a list of the  IXMLDOMNotation  members that are present in the document type declaration. Read-only.

ondataavailable

Specifies the event handler for the  ondataavailable  event. Write-only

onreadystatechange (DOMDocument)

Specifies the event handler to be called when the  readyState  property changes. Write-only.

onreadystatechange (IXMLHTTPRequest)

Specifies the event handler to be called when the  readyState  property changes. Write-only.

onreadystatechange (ServerXMLHTTP/IServerXMLHTTPRequest)

Specifies the event handler to be invoked when the  readyState  property changes. Write-only.

ontransformnode

Specifies the event handler for the  ontransformnode  event. Write-only.

output

Gets a custom output to write the result of the transformation. Read/write.

ownerDocument

Returns the root of the document that contains the node. Read-only.

ownerTemplate

Returns the style sheet template that was used to create  IXSLProcessor. Read-only.

parentNode

Contains the parent node. Read-only.

parsed

Indicates the parsed status of the node and child nodes. Read-only.

parseError

Returns an  IXMLDOMParseError  object that contains information about the last parsing error. Read-only.

prefix

Returns the namespace prefix. Read-only.

preserveWhiteSpace

Specifies the default white space handling. Read/write.

previousSibling

Contains the previous sibling of the node in the parent's child list. Read-only.

publicId (IXMLDOMEntity)

Contains the public identifier associated with the entity. Read-only.

publicId (IXMLDOMNotation)

Contains the public identifier for the notation. Read-only.

readyState (DOMDocument)

Indicates the current state of the XML document. Read-only.

readyState (IXMLHTTPRequest)

Represents the state of the request. Read-only.

readyState (IXSLProcessor)

Returns the current state of the processor. Read-only.

readyState (ServerXMLHTTP/IServerHTTPRequest)

Represents the state of the request. Read-only.

reason

Describes the reason for the error. Read-only.

resolveExternals

Indicates whether external definitions, resolvable namespaces, document type definition (DTD) external subsets, and external entity references, are to be resolved at parse time, independent of validation. Read/write.

responseBody (IXMLHTTPRequest)

Represents only one of several forms in which the HTTP response can be returned. Read-only.

responseBody (ServerXMLHTTP/IServerXMLHTTPRequest)

Represents the response entity body as an array of unsigned bytes. Read-only.

responseStream (IXMLHttpRequest)

Represents only one of several forms in which the HTTP response can be returned. Read-only.

responseStream (ServerXMLHTTP/IServerXMLHTTPRequest)

Represents the response entity body as an  IStream. Read-only.

responseText (IXMLHTTPRequest)

Represents the response entity body as a string. Read-only.

responseText (ServerXMLHTTP/IServerXMLHTTPRequest)

Represents the response entity body as a string. Read-only.

responseXML (IXMLHTTPRequest)

Represents the parsed response entity body. Read-only.

responseXML (ServerXMLHTTP/IServerXMLHTTPRequest)

Represents the response entity body as parsed by MSXML. Read-only.

schemas

Finds schema documents during  load. Read/write.

specified

Indicates whether the node is explicitly specified or derived from a default value in the DTD or schema. Read-only.

srcText

Returns the full text of the line containing the error. Read-only.

startMode

Returns the base name part of the start mode, a qualified name.

startModeURI

Returns the namespace URI part of the start mode, the qualified name. Read-only.

status (IXMLHTTPRequest)

Represents the HTTP status code returned by a request. Read-only.

status (ServerXMLHTTP/IServerXMLHTTPRequest)

Represents the HTTP status code returned by a request. Read-only.

statusText (IXMLHTTPRequest)

Represents the HTTP response line status. Read-only.

statusText (ServerXMLHTTP/IServerXMLHTTPRequest)

Represents the HTTP response line status. Read-only.

stylesheet (IXSLProcessor)

Provides the Extensible Stylesheet Language (XSL) style sheet that is to be compiled into the XSL template. Read-only.

stylesheet (IXSLTemplate)

Returns the XSL style sheet to be compiled into an XSL template. Read-only.

systemId (IXMLDOMEntity)

Contains the system identifier for the entity. Read-only.

systemId (IXMLDOMNotation)

Contains the system identifier for the notation. Read-only.

tagName

Contains the element name. Read-only.

target

Specifies the target for the processing instruction. Read-only.

text

Represents the text content of the node or the concatenated text representing the node and its descendants. Read-only.

url (DOMDocument)

Returns the URL for the last loaded XML document. Read-only.

url (IXMLDOMParseError)

Contains the URL of the XML document containing the last error. Read-only.

validateOnLoad

Indicates whether the schema will be compiled and validated when it is loaded into the schema cache. Read/write.

validateOnParse

Indicates whether the parser should validate this document. Read/write.

value

Contains the attribute value. Read/write.

xml

Contains the XML representation of the node and all its descendants. Read-only.

http://msdn.microsoft.com/en-us/library/ms763798(VS.85).aspx

 

ÆíÁý : superkts.pe.kr