+ XMLReader xmlReader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");
+ xmlReader.setContentHandler(this);
+ xmlReader.parse(new InputSource(inStream));
+ success = true; // worked
+ }
+ catch (Exception e) {} // don't care too much if it didn't work, there's a backup
+
+ // If that didn't work, try the built-in classes (which work for xml1.0 but handling for 1.1 contains bugs)
+ if (!success)
+ {
+ try
+ {
+ // Construct a SAXParser and use this as a default handler
+ SAXParser saxParser = SAXParserFactory.newInstance().newSAXParser();
+ saxParser.parse(inStream, this);
+ success = true;
+ }
+ catch (Exception e)
+ {
+ // Show error dialog
+ _app.showErrorMessageNoLookup("error.load.dialogtitle",
+ I18nManager.getText("error.load.othererror") + " " + e.getMessage());