|
|
|
|
|
|
| |
   
DOM object methods
Here are some of the methods we think would be useful in the context of this book. More complete descriptions can be read from the documentation or on the Microsoft website.
The listing below is a list of all the methods for all of the XMLDom objects. Use this chart when you need to find a method in one of the interfaces that could be useful for something that you are trying accomplish. We have found this list very useful for when we want to do something, like finding the value of an attribute, but don't know what methods are available because there are so many DOM objects. We discover that in the XMLDOMElement interface, there is a method called getAttribute(). If you didn't know it existed there, you might try to do the same thing using the XMLDOMNode interface.
As with the properties before them, the methods that are bolded in table are the ones that we will explain.
0.0.1 DOMDocument methods (continued)
Methods
|
DOMDocument
|
XMLDOMNode
|
XMLDOMNodeList
|
XMLDOMNamedNodeMap
|
XMLDOMAttribute
|
XMLDOMCDATASection
|
XMLDOMComment
|
XMLDOMDocumentFragment
|
XMLDOMDocumentType
|
XMLDOMElement
|
XMLDOMEntity
|
XMLDOMEntityReference
|
XMLDOMImplementation
|
XMLDOMNotation
|
XMLDOMParseError
|
XMLDOMProcessingInstruction
|
XMLDOMText
|
XTLRuntime
|
XMLHTTPRequest
|
abort
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
absoluteChildNumber
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ancestorChildNumber
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appendChild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
appendData
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
childNumber
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cloneNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createAttribute
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createCDATA- Section
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createComment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createDocument- Fragment
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createElement
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createEntity- Reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createProcessing- Instruction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createTextNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deleteData
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
depth
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formatDate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formatIndex
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formatNumber
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formatTime
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAllResponseHeaders
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getResponseHeader
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAttribute
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getAttributeNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getElementsByTagName
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getNamedItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getQualifiedItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hasChildNodes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hasFeature
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insertBefore
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
insertData
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
load
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadXML
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nextNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nodeFromID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
open
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
normalize
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
removeAttribute
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
removeAttribute- Node
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
removeChild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
removeNamedItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
removeQualifiedItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
replaceChild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
replaceData
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
reset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
save
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectNodes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectSingleNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
send
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setRequestHeader
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setAttribute
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setAttributeNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setNamedItem
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
splitText
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3
|
|
|
substringData
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transformNode
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
transformNodeTo- Object
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uniqueID
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Note: Boldface
methods are explained in this chapter.
   
This manuscript is an abridged version of a chapter from
the Manning
Publications book XML Programming with VB and ASP. This chapter looks at the
Microsoft DOM objects. NOTE: Most images have been removed to increase speed and
many of the code comments have also been removed for presentation. Please
purchase the book to enjoy the full experience of all the chapters with images
and code comments!
|
|
|
|
|
|
|
|