OptionalcommentA comment.
<!-- content -->
Comment content, whitespace is not trimmed or normalized.
OptionaldoctypeDocument type declaration.
<!DOCTYPE example PUBLIC "-//Example//example doc" "http://example.org/example.dtd">
This handler is called before parsing any markup declarations.
An end tag.
</element>
Name of the element.
OptionalentityA general entity reference in document content for which the parser has no declarations. Undeclared entities in attribute values are always an error.
<root>
&entity;
</root>
This function is intended to be called only for references to undeclared
entities. If the replacement text of entities can be provided, consider
using SaxOptions.entityProvider instead so that entities are
expanded automatically.
Name of the entity.
true if entity name was recognized. If the function
is not defined or returns false the parser throws an UndeclaredEntity
error.OptionalprocessingA processing instruction.
<?target content?>
PI target, used to identify the application to which the instruction is directed.
PI content, whitespace is not trimmed or normalized.
Start tag.
<element attr="value">
Name of the element.
Attributes of the tag.
Text content.
<element>
content
</element>
By default, the parser collects text content as if it were forming a DOM
Text Node. SaxOptions.incompleteTextNodes may be used to emit
text events as soon as more data is available.
Entity references not recognized by the parser are handled in
entityRef.
Text content.
Boolean value true if content originated from a
CDATA section or false if it is regular text.
OptionalxmlXML declaration of the document.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
https://www.w3.org/TR/REC-xml/