FEATURE: Report namespace attributes also - they can be distinguished
looking for prefix == "xmlns" or prefix == null and name == "xmlns
it is off by default and only meaningful when FEATURE_PROCESS_NAMESPACES feature is on.
FEATURE: Report all validation errors as defined by XML 1.0 sepcification
(implies that FEATURE_PROCESS_DOCDECL is true and both internal and external DOCDECL
will be processed).
Current column: numbering starts from 0
(zero should be returned when parser is in START_DOCUMENT state!)
It must return -1 if parser does not know current line number
or can not determine it (for example in case of WBXML)
Short text describing parser position, including a
description of the current event and data source if known
and if possible what parser was seeing lastly in input.
Get the buffer that contains text of the current event and
start offset of text is passed in first slot of input int array
and its length is in second slot.
Get next parsing event - element content wil be coalesced and only one
TEXT event must be returned for whole element content
(comments and processing instructions will be ignored and emtity references
must be expanded or exception mus be thrown if entity reerence can not be exapnded).
If current event is START_TAG then if next element is TEXT then element content is returned
or if next event is END_TAG then empty string is returned, otherwise exception is thrown.
This method works similarly to next() but will expose
additional event types (COMMENT, CDSECT, DOCDECL, ENTITY_REF, PROCESSING_INSTRUCTION, or
IGNORABLE_WHITESPACE) if they are available in input.
TOKEN: XML processing instruction declaration was just read
and getText() will return text that is inside processing instruction
(this token is available only from nextToken()).
Name of the system or midlet property that should be used for
a system property containing a comma separated list of factory
or parser class names (value:
org.xmlpull.v1.XmlPullParserFactory).
EVENT TYPE and TOKEN: signalize that parser is at the very beginning of the document
and nothing was read yet - the parser is before first call to next() or nextToken()
(available from next() and nextToken()).
Use this array to convert event type number (such as START_TAG) to
to string giving event name, ex: "START_TAG" == TYPES[START_TAG]
This array contains all event types and token types and represents them
as concise strings.
XML Pull Parser is an interface that defines parsing functionlity provided
in XMLPULL V1 API (visit this website to
learn more about API and its implementations).