Class XmlPullCount
java.lang.Object
XmlPullCount
Simple example that counts XML elements, characters and attributes.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int
(package private) int
(package private) int
static final String
(package private) boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
countXml
(XmlPullParser xpp) static void
protected String
printable
(char ch) protected String
void
void
-
Field Details
-
SAMPLE_XML
- See Also:
-
countChars
int countChars -
countAttribs
int countAttribs -
countSTags
int countSTags -
verbose
boolean verbose
-
-
Constructor Details
-
XmlPullCount
public XmlPullCount()
-
-
Method Details
-
main
- Throws:
XmlPullParserException
IOException
-
resetCounters
public void resetCounters() -
printReport
public void printReport() -
countXml
- Throws:
XmlPullParserException
IOException
-
printable
-
printable
-