Each node has a string-value
Attributes, elements, processing instructions, and namespace nodes have expanded names, which are divided into a local part and a namespace URI.
| Node type | Local name | Namespace name | String-value |
|---|---|---|---|
| root | None | None | the complete, ordered content of all text nodes in the document; same as the value of the root element of the document |
| element | The name of the element, not including any prefix or colon | The namespace URI of the element | The complete, ordered content of all text node descendants of this element (i.e. the text that’s left after all references are resolved and all other markup is stripped out.) |
| attribute | The name of the attribute, not including any prefix or colon | The namespace URI of the attribute | The normalized attribute value |
| text | None | None | The complete content of the text node |
| processing instruction | The target of the processing instruction | None | The processing instruction data |
| comment | None | None | The text of the comment |
| namespace | The prefix for the namespace | None | The absolute URI for the namespace |