public class XmlParser extends Object
| Constructor and Description |
|---|
XmlParser(org.xmlpull.v1.XmlPullParser xppParam)
Create a new XmlParser using the given XmlPullParser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
nextTag()
next start or end tag.
|
void |
oneOrMore(String tag,
XmlProcessor xmlElement)
One or more element.
|
void |
optional(String tag,
XmlProcessor xmlElement)
Optional element.
|
void |
read(InputStream inputStream)
Load xml.
|
void |
required(String tag,
XmlProcessor xmlElement)
Required element.
|
void |
zeroOrMore(String tag,
XmlProcessor xmlElement)
Zero or more element.
|
void |
zeroOrMore(SubstitutionGroup substGroup)
SubstitionGroup Support.
|
public XmlParser(org.xmlpull.v1.XmlPullParser xppParam)
xppParam - the XmlPullParser to usepublic void read(InputStream inputStream) throws Exception
inputStream - InputStream to read fromException - exceptionpublic void required(String tag, XmlProcessor xmlElement) throws Exception
tag - required tagxmlElement - handlerException - exceptionpublic void optional(String tag, XmlProcessor xmlElement) throws Exception
tag - required tagxmlElement - handlerException - exceptionpublic void zeroOrMore(String tag, XmlProcessor xmlElement) throws Exception
tag - element tagxmlElement - handlerException - exceptionpublic void zeroOrMore(SubstitutionGroup substGroup) throws Exception
substGroup - SubstitutionGroupException - exceptionpublic void oneOrMore(String tag, XmlProcessor xmlElement) throws Exception
tag - element tagxmlElement - handlerException - exceptionCopyright © 2013. All Rights Reserved.