assertEquals(xpp.TYPES[ type ], xpp.TYPES[ xpp.getEventType() ]);
assertEquals(XmlPullParser.TYPES[ type ], XmlPullParser.TYPES[ xpp.getEventType() ]);
    public String gatherTokenText(XmlPullParser xpp, int type, boolean expectedWhitespaces)        throws XmlPullParserException, IOException    {        StringBuffer buf = new StringBuffer();        assertEquals(xpp.TYPES[ type ], xpp.TYPES[ xpp.getEventType() ]);        do {            buf.append(xpp.getText());            if(expectedWhitespaces) {                assertTrue(xpp.isWhitespace());            }        } while(xpp.nextToken() == type);        return buf.toString();    }