Code example for SAXParser: Parsing XML documents

Methods: parse

0
     
    public List<YourActionFeed> parse() throws Exception {
        SAXParserFactory factory = SAXParserFactory.newInstance();
        SAXParser parser = factory.newSAXParser();
        RssHandler handler = new RssHandler();
        parser.parse(this.getInputStream(), handler);
        return handler.getFeeds();
    } 
     
    final static HostnameVerifier DO_NOT_VERIFY = new HostnameVerifier() {
        public boolean verify(String hostname, SSLSession session) { 
                return true; 
        } 
    }; 
}