org.gjt.xpp
public interface XmlPullNode extends XmlNode
See Also: XmlNode
Method Summary | |
---|---|
Enumeration | children()
This is not recommened method to pull children when node is not
finished (use readNextChild() instead) as Enumeration interface
does not allow to throw XmlPullParserException
so any parsing exeption is wrapped into RuntimeException
making code more messy...
|
int | getChildrenCountSoFar() |
XmlPullParser | getPullParser()
Get parser that is use to build this node tree
and this pull node becomes finished - the caller is responsibile
to move pull parser state to the end tag of this node
(or parent pull node will be left in unconsistent state! |
boolean | isFinished()
Is pull parsing of node finished. |
XmlNode | newNode() |
XmlPullNode | newPullNode(XmlPullParser pp) |
void | readChildren()
Read all reminaing children up to end tag. |
Object | readNextChild()
This is preferred method to pull children
(children() requires .wrapping object Enumeration).
|
void | resetPullNode() |
void | setPullParser(XmlPullParser pp) Reset pull node to use pull parser. |
void | skipChildren() |
See Also: readNextChild
NOTE: this pull node must be in unfinished state or exception will be thrown
Returns: next child (which is String or XmlPullNode) or null if there is no re children
See Also: children