Returns the number of attributes of the current start tag, or
-1 if the current event type is not START_TAG
Returns the local name of the specified attribute
if namespaces are enabled or just attribute name if namespaces are disabled.
Returns the namespace URI of the attribute
with the given index (starts from 0).
Returns the prefix of the specified attribute
Returns null if the element has no prefix.
Returns the type of the specified attribute
If parser is non-validating it MUST return CDATA.
Returns the given attributes value.
Returns the attributes value identified by namespace URI and namespace localName.
Returns the current column number, starting from 0.
Returns the current depth of the element.
Returns the current depth of the element.
Returns the type of the current event (START_TAG, END_TAG, TEXT, etc.)
Returns the current value of the given feature.
Return the current value of the feature with given name.
Return the current value of the feature with given name.
Returns the input encoding if known, null otherwise.
Returns the current line number, starting from 1.
For START_TAG or END_TAG events, the (local) name of the current
element is returned when namespaces are enabled.
Returns the name of the current element as set by startTag().
Returns the namespace URI of the current element.
Returns the namespace URI of the current element as set by startTag().
Returns the URI corresponding to the given prefix,
depending on current state of the parser.
Returns the numbers of elements in the namespace stack for the given
depth.
Returns the namespace prefixe for the given position
in the namespace stack.
Returns the namespace URI for the given position in the
namespace stack
If the position is out of range, an exception is thrown.
Returns a short text describing the current parser state, including
the position, a
description of the current event and the data source if known.
Returns the prefix of the current element.
Return namespace that corresponds to given prefix
If there is no prefix bound to this namespace return null
but if generatePrefix is false then return generated prefix.
Look up the value of a property.
Look up the value of a property.
Returns the text content of the current event as String.
Returns the buffer that contains the text of the current event,
as well as the start offset and length relevant for the current
event.
Ignorable whitespace was just read.
Returns if the specified attribute was not in input was declared in XML.
Returns true if the current event is START_TAG and the tag
is degenerated
(e.g.
Indicates whether or not the factory is configured to produce
parsers which are namespace aware
(it simply set feature XmlPullParser.FEATURE_PROCESS_NAMESPACES to true or false).
Indicates whether or not the factory is configured to produce parsers
which validate the XML content during parse.
Checks whether the current TEXT event contains only whitespace
characters.
Create a new instance of a PullParserFactory that can be used
to create XML pull parsers (see class description for more
details).
Creates a new instance of a XML Pull Parser
using the currently configured factory features.
Creates a new instance of a XML Serializer.
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).
Call next() and return event if it is START_TAG or END_TAG
otherwise throw an exception.
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.
This constant represents the default namespace (empty string "")
Use this call to change the general behaviour of the parser,
such as namespace processing or doctype declaration handling.
Set the features to be set when XML Pull Parser is created by this factory.
Set feature identified by name (recommended to be URI for uniqueness).
Sets the input stream the parser is going to process.
Set the input source for parser to the given reader and
resets the parser.
Specifies that the parser produced by this factory will provide
support for XML namespaces.
Set to use binary output stream with given encoding.
Set the output to the given writer.
Binds the given prefix to the given namespace.
Set the value of a property.
Set the value of a property.
Specifies that the parser produced by this factory will be validating
(it simply set feature XmlPullParser.FEATURE_VALIDATION to true or false).
Signalize that parser is at the very beginning of the document
and nothing was read yet.
Write <?xml declaration with encoding (if encoding not null)
and standalone flag (if standalone not null)
This method can only be called just after setOutput.
Writes a start tag with the given namespace and name.