XML DOM Properties

 

This section describes DOM property syntax.

PropertyDescription
allErrorsReturns a parseErrorCollection object containing all errors and warnings found during validation. Read-only.
asyncSpecifies whether asynchronous download is permitted. Read/write.
attributesContains the list of attributes for this node. Read-only.
baseNameReturns the base name for the name qualified with the namespace. Read-only.
childNodesContains a node list containing the child nodes. Read-only.
contextGets 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.
dataTypeSpecifies the data type for this node. Read/write.
definitionReturns the definition of the node in the document type definition (DTD) or schema. Read-only.
doctypeContains the document type node that specifies the document type definition (DTD) for this document. Read-only.
documentElementContains the root element of the document. Read/write.
entitiesContains a list of the entities declared in the <!DOCTYPE> declaration. Read-only.
errorCodeContains the error code of the last parse error. Read-only.
errorParametersCountReturns the number of error parameters used in an error message. Read-only.
errorXPathRturns an XPath expression that locates the node where an error occurred. Read-only.
exprGets or sets the XML Path Language (XPath) expression. Read/write.
fileposContains the absolute file position where the error occurred. Read-only.
firstChildContains the first child of the node. Read-only.
implementationContains the IXMLDOMImplementation object for the document. Read-only.
inputSpecifies which XML input tree to transform. Read/write.
itemReturns the item from the collection with the specified index.
lastChildReturns 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.
lineSpecifies the line number that contains the error. Read-only.
lineposSpecifies 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.
namespacesReturns 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.
nextReturns the next item in the error collection object.
nextSiblingContains the next sibling of the node in the parent's child list. Read-only.
nodeNameReturns the qualified name for attribute, document type, element, entity, or notation nodes. Returns a fixed string for all other node types. Read-only.
nodeTypeSpecifies the XML Document Object Model (DOM) node type, which determines valid values and whether the node can have child nodes. Read-only.
nodeTypedValueContains the node value expressed in its defined data type. Read/write
nodeTypeStringReturns the node type in string form. Read-only.
nodeValueContains the text associated with the node. Read/write.
notationNameContains the notation name. Read-only.
notationsContains a list of the IXMLDOMNotation members that are present in the document type declaration. Read-only.
ondataavailableSpecifies 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.
ontransformnodeSpecifies the event handler for the ontransformnode event. Write-only.
outputGets a custom output to write the result of the transformation. Read/write.
ownerDocumentReturns the root of the document that contains the node. Read-only.
ownerTemplateReturns the style sheet template that was used to create IXSLProcessor. Read-only.
parentNodeContains the parent node. Read-only.
parsedIndicates the parsed status of the node and child nodes. Read-only.
parseErrorReturns an IXMLDOMParseError object that contains information about the last parsing error. Read-only.
prefixReturns the namespace prefix. Read-only.
preserveWhiteSpaceSpecifies the default white space handling. Read/write.
previousSiblingContains 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.
reasonDescribes the reason for the error. Read-only.
resolveExternalsIndicates 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.
schemasFinds schema documents during load. Read/write.
specifiedIndicates whether the node is explicitly specified or derived from a default value in the DTD or schema. Read-only.
srcTextReturns the full text of the line containing the error. Read-only.
startModeReturns the base name part of the start mode, a qualified name.
startModeURIReturns 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.
tagNameContains the element name. Read-only.
targetSpecifies the target for the processing instruction. Read-only.
textRepresents 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.
validateOnLoadIndicates whether the schema will be compiled and validated when it is loaded into the schema cache. Read/write.
validateOnParseIndicates whether the parser should validate this document. Read/write.
valueContains the attribute value. Read/write.
xmlContains the XML representation of the node and all its descendants. Read-only.
Show: