xpp.setFeature(xpp.FEATURE_PROCESS_DOCDECL, true);
xpp.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true);
    private XmlPullParser newParser(boolean useNamespaces, boolean useValidation)        throws XmlPullParserException    {        XmlPullParser xpp = factory.newPullParser();        xpp.setFeature(xpp.FEATURE_PROCESS_NAMESPACES, useNamespaces);        assertEquals(useNamespaces, xpp.getFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES));        try {            xpp.setFeature(xpp.FEATURE_PROCESS_DOCDECL, true);        } catch(XmlPullParserException ex) {            return null;        }        assertEquals(true, xpp.getFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL));        try {            xpp.setFeature(xpp.FEATURE_VALIDATION, useValidation);        } catch(XmlPullParserException ex) {            return null;        }        assertEquals(useValidation, xpp.getFeature(XmlPullParser.FEATURE_VALIDATION));        return xpp;    }