You are here: Reference > JavaScript > client-side > xml handling

AJAX and XML handling in JavaScript

Related objects:

Object Support Description
DOMParser
9
Provides methods to build XMLDocument objects from XML formatted strings or streams.
MSXML.DOMDocument
Represents an entire XML document and provides possibilities for accessing, creating and manipulating all elements in the document.
Microsoft.XMLHTTP
Provides functionality to send and retrieve data from a server.
NodeIterator
93.5
Represents the result of the createNodeIterator method as an ordered list.
TreeWalker
9
Represents the result of the createTreeWalker method as a tree.
XMLDocument
Represents an entire XML document and provides possibilities for accessing, creating and manipulating all elements in the document.
XMLDOMParseError
Contains detailed information about the error of the last XML parsing.
XMLSerializer
9
Provides methods to convert a document or a subtree of a document into text or a byte stream.
XMLHttpRequest
Provides functionality to send and retrieve data from a server.
XPathNSResolver
Can be used to get namespace URIs from namespace prefices in the scope of a node.
XPathResult
Represents the result of the evaluation of an XPath expression.

Related properties:

Property Support Description
async
(XMLDocument)
Specifies or retrieves whether downloading an XML file should be performed asynchronously or not.
baseName
(attribute, Element)
Returns the local part of the qualified name of the current node.
booleanValue
(XPathResult)
If the type of the result represented by the XPathResult object is Boolean, returns the value of the result.
currentNode
(TreeWalker)
9
Sets or retrieves a reference to the node where the pointer of the TreeWalker is currently positioned.
dataType
(attribute, Element)
Sets or returns the data type for the current element or attribute.
errorCode
(XMLDOMParseError)
Returns an integer that specifies the code of the last error.
expandEntityReferences
(NodeIterator, TreeWalker)
9
Returns a Boolean value that indicates whether the children of entity reference nodes are visible to the NodeIterator or TreeWalker object.
filepos
(XMLDOMParseError)
Returns an integer that specifies the absolute position of the character where the error occurred.
filter
(NodeIterator, TreeWalker)
9
Returns the filtering that function belongs to the NodeIterator or TreeWalker object.
invalidIteratorState
(XPathResult)
Retrieves whether the iterator of the current XPathResult object is valid or not.
line
(XMLDOMParseError)
Returns an integer that specifies the number of the line where the error occurred.
linepos
(XMLDOMParseError)
Returns an integer that specifies the position of the character within the line where the error occurred.
localName
(attribute, Element)
9
Returns the local part of the qualified name of the current node.
namespaceURI
(attribute, Element)
Sets or returns the namespace URI of the current node.
nodeTypedValue
(attribute, Element)
Sets or returns the value of the node in its data type. The data type of a node can be defined with the dataType property.
nodeTypeString
(attribute, Element, ...)
Returns the type of the current node as a string.
numberValue
(XPathResult)
If the type of the result represented by the XPathResult object is number, returns the value of the result.
parseError
(XMLDocument)
Contains detailed information about the error of the last XML parsing.
prefix
(attribute, Element)
Sets or returns the namespace prefix of the current node.
readyState
(XMLDocument)
Returns an integer value that indicates the load state of the XMLDocument object.
readyState
(XMLHttpRequest)
Returns an integer value that indicates the state of the request operation.
reason
(XMLDOMParseError)
Returns a string that contains detailed information about the error.
responseBody
(XMLHttpRequest)
Returns the body of the server's response as an array of unsigned bytes.
responseText
(XMLHttpRequest)
Returns the body of the server's response as a string.
responseXML
(XMLHttpRequest)
Builds an XMLDocument object from the body of the server's response.
resultType
(XPathResult)
Retrieves the type of the result represented by the XPathResult object.
root
(NodeIterator, TreeWalker)
9
Returns the root element that was used to create the NodeIterator or TreeWalker object.
singleNodeValue
(XPathResult)
Returns the single node represented by the current XPathResult object.
snapshotLength
(XPathResult)
Returns the length of the snapshots collection.
srcText
(XMLDOMParseError)
Returns a string that contains the contents of the line where the error occurred.
status
(XMLHttpRequest)
Returns an integer that represents the status code of the request.
statusText
(XMLHttpRequest)
Returns a string that represents the status of the request in a friendly form.
stringValue
(XPathResult)
If the type of the result represented by the XPathResult object is string, returns the value of the result.
url
(XMLDOMParseError)
Returns a string that specifies the URL of the document that generated the error of the last XML parsing.
whatToShow
(NodeIterator, TreeWalker)
9
Returns an integer that identifies the types of nodes that can be shown by the current NodeIterator or TreeWalker object.
xml
(DocumentFragment, XMLDocument)
Returns the node and its descendants as a string.
xmlEncoding
(XMLDocument)
Returns the character encoding of the XMLDocument.
xmlStandalone
(XMLDocument)
Returns whether the XMLDocument is standalone.
xmlVersion
(XMLDocument)
Returns the version of the XMLDocument as a string.

Related methods:

Method Support Description
abort
(XMLHttpRequest)
Interrupts the current HTTP request.
detach
(NodeIterator)
93.5
Releases the current NodeIterator object and puts the iterator into the invalid state.
firstChild
(TreeWalker)
9
Finds the first child of the current node in the tree represented by the current TreeWalker object. If it exists, it will be made the current node and returned, else the current node is retained and null is returned.
getAllResponseHeaders
(XMLHttpRequest)
Returns a string that contains all response headers.
getResponseHeader
(XMLHttpRequest)
Returns the value of the specified response header.
isDefaultNamespace
9
Returns whether the specified namespace URI is the default namespace in the scope of the current node.
iterateNext
(XPathResult)
Moves the iterator to the next node in the result set and returns the node referenced by the current iterator.
lastChild
(TreeWalker)
9
Finds the last child of the current node in the tree represented by the current TreeWalker object. If it exists, it will be made the current node and returned, else the current node is retained and null is returned.
load
(XMLDocument)
Downloads the specified XML file and builds an XMLDocument object from it.
loadXML
(XMLDocument)
Builds an XMLDocument object from the specified string.
lookupNamespaceURI
9
Retrieves the namespace URI associated with the specified namespace prefix in the scope of the current node.
lookupPrefix
9
Retrieves the namespace prefix associated with the specified namespace URI in the scope of the current node.
nextNode
(NodeIterator, TreeWalker)
9
Finds the next node relative to the current node in the ordered list represented by the current NodeIterator object or in the tree represented by the current TreeWalker object. If it exists, it will be made the current node and returned, else the current node is retained and null is returned.
nextSibling
(TreeWalker)
9
Finds the next sibling of the current node in the tree represented by the current TreeWalker object. If it exists, it will be made the current node and returned, else the current node is retained and null is returned.
open
(XMLHttpRequest)
Initializes an HTTP request for sending.
parentNode
(TreeWalker)
9
Finds the parent node of the current node in the tree represented by the current TreeWalker object. If it exists, it will be made the current node and returned, else the current node is retained and null is returned.
parseFromBuffer
(DOMParser)
Creates an XMLDocument object from the specified byte array.
parseFromStream
(DOMParser)
Creates an XMLDocument object from the specified byte stream.
parseFromString
(DOMParser)
9
Builds an XMLDocument object from the specified string.
previousNode
(NodeIterator, TreeWalker)
9
Finds the previous node relative to the current node in the ordered list represented by the current NodeIterator object or in the tree represented by the current TreeWalker object. If it exists, it will be made the current node and returned, else the current node is retained and null is returned.
previousSibling
(TreeWalker)
9
Finds the previous sibling of the current node in the tree represented by the current TreeWalker object. If it exists, it will be made the current node and returned, else the current node is retained and null is returned.
selectSingleNode
(XMLDocument)
Returns the first node that matches the specified XPath expression on the current node.
send
(XMLHttpRequest)
Sends an HTTP request to the server.
serializeToStream
(XMLSerializer)
Returns the contents of the document or a node in the document as a byte stream.
serializeToString
(XMLSerializer)
9
Returns the contents of the document or a node in the document as a string.
setRequestHeader
(XMLHttpRequest)
Adds an HTTP header with the specified name and value to the request.
snapshotItem
(XPathResult)
Returns a matching node from the snapshots collection.
User Contributed Comments

Post Content

Post Content