Re: [xml-dev] Types of tokens in XML instance documents?

From
Mukul Gandhi <>
To
Roger L Costello <>
Date
2021-03-12T14:13:03Z
ID
<>
Thread
Re: [xml-dev] Types of tokens in XML instance documents?
On Fri, Mar 12, 2021 at 7:26 PM Roger L Costello <[email protected]> wrote:
What are the types of tokens in XML documents? Leaving aside the DTD stuff, I think these are the types of tokens in XML documents:

1. The '<' character
2. The '>' character
3. Empty element terminator "/>"
4. End tag start </
5. Element name
6. Attribute name
7. The '=' character
8. Attribute value delimited by quote characters
9. Attribute value delimited by apostrophe characters
10. Text data
11. Processing instruction <?...?>
12. Entity &...;
13. Character decimal entity &#..;
14. Character hexadecimal entity &#x...;
15. CDATA section <![CDATA[ ... ]]>
16. Comment <!-- ... -->

This should cover mostly all XML token types, I guess.

Nice work.



--
Regards,
Mukul Gandhi