app.verbose = false;
app.verbose = true;
    public static void main (String args[])        throws XmlPullParserException, IOException    {        XmlPullParserFactory factory = XmlPullParserFactory.newInstance(            System.getProperty(XmlPullParserFactory.PROPERTY_NAME), null);        factory.setNamespaceAware(true);        System.err.println("using factory "+factory.getClass());        XmlPullParser xpp = factory.newPullParser();        System.err.println("using parser "+xpp.getClass());        XmlPullCount app = new XmlPullCount();        app.verbose = false;        for(int c = 0; c < 2; ++c) {            System.err.println("run#"+c);            app.resetCounters();            if(args.length == 0) {                System.err.println("Parsing simple sample XML length="+SAMPLE_XML.length());                xpp.setInput( new StringReader( SAMPLE_XML ) );                app.countXml(xpp);            } else {                //r (int i = 0; i < args.length; i++) {                File f = new File(args[0]);                System.err.println("Parsing file: "+args[0]+" length="+f.length());                xpp.setInput ( new FileReader ( args [0] ) );                app.countXml(xpp);                //            }            app.printReport();        }        System.err.println("finished");    }