|
Type value |
Type Name |
Example |
Variable Name |
|
0 |
Start Tag |
<example> |
TOKEN_STARTING_TAG |
|
1 |
End Tag |
</example> |
TOKEN_ENDING_TAG |
|
2 |
Attribute Name |
<example
attrName1="this"> |
TOKEN_ATTR_NAME |
|
3 |
Name Space |
<ns:example
xmlns:ns="google"> |
TOKEN_ATTR_NS |
|
4 |
Attribute Value |
<example
property2="that"> |
TOKEN_ATTR_VAL |
|
5 |
Character Data |
<example>tasty
fruit
</example> |
TOKEN_CHARACTER_DATA
|
|
6 |
Comment |
<!--
this is a comment
--> |
TOKEN_COMMENT |
|
7 |
Processing Instruction name |
<?target
street="mission" ?> |
TOKEN_PI_NAME
|
|
8 |
Processing Instruction value |
<?target
street="mission"
?> |
TOKEN_PI_VAL
|
|
9 |
XML declaration property name |
<?xml
version="1.0"
?>
|
TOKEN_DEC_ATTR_NAME
|
|
10 |
XML declaration property value |
<?xml
version="1.0"
?>
|
TOKEN_DEC_ATTR_VAL
|
|
11 |
CDATA value |
<![CDATA[…data
content…]]> |
TOKEN_CDATA_VAL |
|
12 |
DOCTYPE |
<!DOCTYPE
…> |
TOKEN_DTD_VAL |