public void writeToken (int eventType) throws XmlPullParserException, IOException {
private void writeToken (int eventType) throws XmlPullParserException, IOException {
    public void writeToken (int eventType) throws XmlPullParserException, IOException {        switch (eventType) {            case XmlPullParser.START_DOCUMENT:                //use Boolean.TRUE to make it standalone                Boolean standalone = (Boolean) parser.getProperty(PROPERTY_XMLDECL_STANDALONE);                serializer.startDocument(parser.getInputEncoding(), standalone);                break;            case XmlPullParser.END_DOCUMENT:                serializer.endDocument();                break;            case XmlPullParser.START_TAG:                writeStartTag ();                break;            case XmlPullParser.END_TAG:                serializer.endTag(parser.getNamespace (), parser.getName ());                break;            case XmlPullParser.IGNORABLE_WHITESPACE:                //comment it to remove ignorable whtespaces from XML infoset                String s = parser.getText ();                serializer.ignorableWhitespace (s);                break;            case XmlPullParser.TEXT:                serializer.text (parser.getText ());                break;            case XmlPullParser.ENTITY_REF:                serializer.entityRef (parser.getName ());                break;            case XmlPullParser.CDSECT:                serializer.cdsect( parser.getText () );                break;            case XmlPullParser.PROCESSING_INSTRUCTION:                serializer.processingInstruction( parser.getText ());                break;            case XmlPullParser.COMMENT:                serializer.comment (parser.getText ());                break;            case XmlPullParser.DOCDECL:                serializer.docdecl (parser.getText ());                break;        }    }