checkParserStateNs(xpp, 3, xpp.START_TAG,
checkParserStateNs(xpp, 3, XmlPullParser.START_TAG,
    public void testEvent() throws Exception {        XmlPullParserFactory factory = newFactory();        XmlPullParser xpp = factory.newPullParser();        xpp.setInput(new StringReader(TEST_XML));        checkParserStateNs(xpp, 0, xpp.START_DOCUMENT, null, 0, null, null, null, false, -1);        xpp.next();        checkParserStateNs(xpp, 1, xpp.START_TAG, null, 0, "", "root", null, false, 0);        xpp.next();        checkParserStateNs(xpp, 1, xpp.TEXT, null, 0, null, null, "\n", false, -1);        xpp.next();        checkParserStateNs(xpp, 2, xpp.START_TAG, null, 0, "", "foo", null, false, 0);        xpp.next();        checkParserStateNs(xpp, 2, xpp.TEXT, null, 0, null, null, "bar", false, -1);        xpp.next();        checkParserStateNs(xpp, 2, xpp.END_TAG, null, 0, "", "foo", null, false, -1);        xpp.next();        checkParserStateNs(xpp, 1, xpp.TEXT, null, 0, null, null, "\n", false, -1);        xpp.next();        checkParserStateNs(xpp, 2, xpp.START_TAG,                           null, 1, "http://www.xmlpull.org/temp", "hugo", null, false, 0);        checkNamespace(xpp, 0, null, "http://www.xmlpull.org/temp", true);        xpp.next();        checkParserStateNs(xpp, 2, xpp.TEXT, null, 1, null, null, " \n\n \n  ", false, -1);        xpp.next();        checkParserStateNs(xpp, 3, xpp.START_TAG,                           null, 1, "http://www.xmlpull.org/temp", "hugochild", null, false, 0);        xpp.next();        checkParserStateNs(xpp, 3, xpp.TEXT, null, 1, null, null,                           "This is in a new namespace", false, -1);        xpp.next();        checkParserStateNs(xpp, 3, xpp.END_TAG,                           null, 1, "http://www.xmlpull.org/temp", "hugochild", null, false, -1);        xpp.next();        checkParserStateNs(xpp, 2, xpp.END_TAG,                           null, 1, "http://www.xmlpull.org/temp", "hugo", null, false, -1);        xpp.next();        checkParserStateNs(xpp, 1, xpp.TEXT, null, 0, null, null, "\t\n", false, -1);        xpp.next();        checkParserStateNs(xpp, 2, xpp.START_TAG, null, 0, "", "bar", null, true, 1);        checkAttribNs(xpp, 0, null, "", "testattr", "123abc");        xpp.next();        checkParserStateNs(xpp, 2, xpp.END_TAG, null, 0, "", "bar", null, false, -1);        xpp.next();        checkParserStateNs(xpp, 1, xpp.END_TAG, null, 0, "", "root", null, false, -1);        xpp.next();        checkParserStateNs(xpp, 0, xpp.END_DOCUMENT, null, 0, null, null, null, false, -1);    }