OptionalcommentComment 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.
Namespace resolver relative to the current element, should not be used outside the handler.
OptionalentityA general entity reference.
<root>
&entity;
</root>
This handler is equivalent to SaxHandler.entityRef except it
has access to the namespace resolver of the current element.
Name of the entity.
Namespace resolver relative to the current element, should not be used outside the handler.
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.
Namespace resolver relative to the current element, should not be used outside the handler.
Text content.
<element>
content
</element>
This handler is equivalent to SaxHandler.text except it has
access to the namespace resolver of the current element.
entityRef.
Text content.
Boolean value true if content originated from a
CDATA section or false if it is regular text.
Namespace resolver relative to the current element, should not be used outside the handler.
OptionalxmlXML declaration of the document.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
A comment.