DTD-Related Properties of the xmldom Object
This hour will conclude by presenting some additional properties of the xmldom object.
Property | Data Type | Contains |
---|---|---|
url | String | The URL of the most recently loaded document |
validateOnParse | Boolean | If true, document is validated when parsed; if false, it isn't |
xml | Text | The XML representation of the node |
nodeType | Number | A numeric code that specifies the DOM type for the node |
The possible values for the nodeType and their meanings are summarized in Table 5.5.
Value | Corresponding Node Type |
---|---|
1 | ELEMENT |
2 | ATTRIBUTE |
3 | TEXT |
4 | CDATA |
5 | ENTITY REFERENCE |
6 | ENTITY |
7 | PI (Processing instruction) |
8 | COMMENT |
9 | DOCUMENT |
10 | DOCUMENT TYPE (as found in the ... |
Get Sams Teach Yourself XML in 24 Hours 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.