Before parsing is possible you have to 始める,決める your
XFastDocumentHandler using setFastDocumentHandler.
Parsing starts with calling parseStream. If the parser
finds a valid xml とじ込み/提出する with the given InputSource, it calls
XFastDocumentHandler::startDocument first.
This parser 生成するs either '急速な/放蕩な' events that use integer 記念品
values for namespaces, elements and せいにするs or 'unknown' events for
elements that are unknown.
A namespace is unknown if the namespace URL was not 登録(する)d with
registerNamespace.
An element is unknown if no XFastTokenHandler is 始める,決める
or if the XFastTokenHandler does not return a valid
identifier for the elements 地元の 指名する. An element is also unknown if
the elements 地元の 指名する is known but it uses a namespace that is unknown.
Setting a XFastTokenHandler with setTokenHandler
is optional, but without a XFastTokenHandler you will only
get unknown sax events. This can be useful if you are only 利益/興味d
in the namespace 扱うing and/or the 状況 feature.
For each element the parser sends a create child element event to the
elements parent 状況 by calling
XFastContextHandler::createFastChildContext for known
elements or XFastContextHandler::createUnknownChildContext
for unknown elements.
The parent 状況 for the root element is the XFastDocumentHandler
itself.
If the parent 状況 returns an empty 言及/関連, no その上の events for
the element and all of its childs are created.
If a valid 状況 is returned this 状況 gets a start event by a call to
XFastContextHandler::startFastElement for known elements or
XFastContextHandler::startUnknownElement for unknown elements.
After 過程ing all its child elements the 状況 gets an end event by a call to
XFastContextHandler::endFastElement for known elements or
XFastContextHandler::endUnknownElement for unknown elements.
It is valid to return one instance of XFastContextHandler more
than once. It is even possible to only use the XFastDocumentHandler
by always returning a 言及/関連 to itself for each create child 状況 event.
After the last element is 過程d the parser 生成するs an end 文書
event at the XFastDocumentHandler by calling
XFastDocumentHandler::endDocument.