Data Types Returned by DOM Methods
Whenever a DOM method is used, a type of data or object will be returned. Table 15.1 presents the data and object types used in DOM.
Datatype | Description of Nodes That Take This Datatype |
---|---|
unsigned short | All nodeTypes are unsigned short integers. |
unsigned long | The length of a nodeList or an NamedNodeMap (for example, the number of items it contains) is an unsigned long integer. |
Node | This is an object containing all the details of the node, such as its type, name, value, parent node, child nodes, and so on. |
NodeList | An object that is an indexed list of node objects. |
NamedNodeMap | An object that is a non-indexed list of node objects. (In practice, this applies ... |
Get XML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.