Attribute Types Supported in IE
Given the attributes that were used in Listing 19.12, the only data type that you needed was the enumeration type. There are several types that are supported, as summarized in Table 19.4.
Data Type | XML Equivalent | Meaning |
---|---|---|
id | ID | Attributevalue must be a unique identifier. |
string | PCDATA | Onlycharacter data can be used. |
entity | ENTITY | Attributevalue must refer to an entity. |
entities | ENTITIES | Same as entity, but allows for multiple values separated by whitespace. |
idref | IDREF | Value must be a reference to an id attribute. |
idrefs | IDREFS | Same as idref, but allows for multiple values separated by whitespace. |
nmtoken | NMTOKEN | Attribute is a mixture of name token characters, which can ... |
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.