Code example for QName

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");
        } 
 
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java