try { // StAX default
factory = XMLInputFactory.newInstance();
setupProperties(factory);
} catch (IllegalArgumentException ex) {
throw new XMLException(
"Could not find or create a suitable StAX parser"
+ " - check your classpath", ex);
} catch (Exception ex) {
throw new XMLException(
"Could not find or create a suitable StAX parser"
+ " - check your classpath", ex);
} catch (NoClassDefFoundError ex) {
throw new XMLException(
"Could not find or create a suitable StAX parser"
+ " - check your classpath", ex);
}
if (DEBUG) System.err.println("using default XMLInputFactory="