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) intstatic final String(package private) boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcountXml(XmlPullParser xpp) static voidprotected Stringprintable(char ch) protected Stringvoidvoid
-
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:
XmlPullParserExceptionIOException
-
resetCounters
public void resetCounters() -
printReport
public void printReport() -
countXml
- Throws:
XmlPullParserExceptionIOException
-
printable
-
printable
-