@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("xml:base")) { try { xmlBase = new URI(atts.getValue(i)); throw new SAXParseCompletedException(); } catch (URISyntaxException e) { logger.error("URI syntax error", e); } } } throw new SAXException("No xml base"); } }
@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("xml:base")) { try { xmlBase = new URI(atts.getValue(i)); throw new SAXParseCompletedException(); } catch (URISyntaxException e) { log.error("Exception caught", e); } } } throw new SAXException("No xml base"); } }
@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("xml:base")) { try { xmlBase = new URI(atts.getValue(i)); throw new SAXParseCompletedException(); } catch (URISyntaxException e) { logger.error("URI syntax error", e); } } } throw new SAXException("No xml base"); } }
@Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("xml:base")) { try { xmlBase = new URI(atts.getValue(i)); throw new SAXParseCompletedException(); } catch (URISyntaxException e) { log.error("Exception caught", e); } } } throw new SAXException("No xml base"); } }