SAXParser

A SAX parser built on top of a cursor.

Delegates are called when certain events are encountered, then it passes the necessary data to process the element.

Members

Aliases

AttrRange
alias AttrRange = T.AttributesRange
Undocumented in source.
StringType
alias StringType = T.StringType
Undocumented in source.

Functions

createAArray
StringType[StringType] createAArray(AttrRange source)
Undocumented in source. Be warned that the author may not have intended to support it.
processDocument
void processDocument()

Processes the entire document; every time a node of XMLKind XXX is found, the corresponding method onXXX(underlyingCursor) of the handler is called, if it exists.

save
auto save()
Undocumented in source. Be warned that the author may not have intended to support it.
setSource
void setSource(T.InputType input)

Initializes this parser (and the underlying low level one) with the given input.

Variables

cursor
T cursor;
Undocumented in source.
onCDataSection
void delegate(StringType content) onCDataSection;

Called when a CDataSection node is encountered.

onComment
void delegate(StringType content) onComment;

Called when a comment is encountered.

onDocument
void delegate(StringType[StringType] attributes) onDocument;

Called when a Document declaration is reached.

onElementEmpty
void delegate(StringType name, StringType[StringType] attributes) onElementEmpty;

Called on an empty element. Provides access to the attributes.

onElementEnd
void delegate(StringType name) onElementEnd;

Called on a non-empty element ending.

onElementStart
void delegate(StringType name, StringType[StringType] attributes) onElementStart;

Called on a non-empty element start. Provides access to the attributes.

onProcessingInstruction
void delegate(StringType name, StringType content) onProcessingInstruction;

Called when a processing instruction is encountered.

onText
void delegate(StringType content) onText;

Called when a text chunk is encountered.

Meta