Code example for SAXException

0
        @Override 
        public void startElement( 
                String uri, String local, String name, Attributes attributes)
                throws SAXException { 
            this.rootElement = new QName(uri, local);
            throw new SAXException("Aborting: root element received");
        } 
 
    } 
 
}