Code example for XmlPullParser

Methods: setFeature

0
	private XmlPullParser parser;
	 
	public Open311XmlParser() { 
        parser = Xml.newPullParser();
        try { 
            parser.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, false);
        } 
        catch (XmlPullParserException e) {
            // TODO Auto-generated catch block 
            e.printStackTrace();
        } 
	} 
     
	/** 
	 * Converts an Open311 Service List from XML to JSON 
	 *  
	 * @param xml 
	 * @return JSONArray 
	 * @throws XmlPullParserException  
	 * @throws IOException  
	 * @throws JSONException