A cdata section: <![CDATA[ ... ]]>.
An XML comment: <!-- ... -->.
The start tag for an element. e.g. <foo name="value">.
The end tag for an element. e.g. </foo>.
The tag for an element with no contents or matching end tag. e.g. <foo name="value"/>.
The content of an element tag that is simple text.
If there is an entity other than the end tag following the text, then the text includes up to that entity.
Note however that character references (e.g. "*") and the predefined entity references (e.g. "'") are left unprocessed in the text. In order for them to be processed, the text should be passed to either decodeXML or asDecodedXML. Entity references which are not predefined are considered invalid XML, because the DTD section is skipped, and thus they cannot be processed properly.