XML DOMLesson 34Free preview
DOM Node Info
This lesson is part of XML · All levels
Summary
Each node has basic information in the form of nodeName, nodeValue, and nodeType. nodeName contains the name of the element or the # sign for the text, nodeValue contains values on the text node and the attributes, while nodeType is the number of the node type markers. All three are useful when you look at trees generically without knowing their structure at first.
Key points
- NodeName contains the node name or # for the text node
- NodeValue contains values for text and attribute nodes
- NodeType is a fixed number for each type of node
- The element has a nodeName as its tag name
- This information is useful for generic tree processing.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.