Code example for DefaultHandler

0
        } 
    } 
 
    private static class XmlSaxParser implements Parser { 
        @Override public void parse(String data) throws Exception {
            SAXParserFactory.newInstance().newSAXParser().parse(
                    new InputSource(new StringReader(data)), new DefaultHandler());
        } 
    } 
}