Code example for DefaultHandler

0
			SAXParserFactory spf = SAXParserFactory.newInstance(); 
			SAXParser sp = spf.newSAXParser(); 
		  
			xr = sp.getXMLReader(); 
		  
			DefaultHandler dataHandler = new DefaultHandler(); 
			xr.setContentHandler(dataHandler); 
		  
			xr.parse(content); 
	  
		} catch(ParserConfigurationException pce) { 
			Log.e("SAX XML", "sax parse error", pce); 
		} catch(SAXException se) { 
			Log.e("SAX XML", "sax error", se); 
		} catch(IOException ioe) { 
			Log.e("SAX XML", "sax parse io error", ioe); 
		}  
		 
		return xr;
	} 
Stop searching for code, let great code find you!  Add Codota to your java IDE