void (final StdXMLReader r, final IXMLBuilder builder) { StdXMLParser parser = new StdXMLParser(); parser.setReader(r); parser.setBuilder(builder); parser.setValidator(new EmptyValidator()); parser.setResolver(new EmptyEntityResolver()); try { parser.parse(); } catch (XMLException e) { if (e.getException() instanceof ParserStoppedException) { return; } LOG.debug(e); } }