/** * Get the Xerces version being used. * * @return Xerces version being used */ public static String getXercesVersion() { try { return org.apache.xerces.impl.Version.getVersion(); } catch (java.lang.NoClassDefFoundError ex) { return "Xerces-J 2.2.0"; } }
public String getVersion() { return new Version().getVersion(); }
public String getVersion() { return new Version().getVersion(); }
public String getVersion() { return Version.getVersion(); }
public String getVersion() { return Version.getVersion(); }
public String getVersion() { return Version.getVersion(); }
public String getVersion() { return Version.getVersion(); }
/** * Create object that represents tool runtime environment. */ public ToolEnvironment() { try { // FUTURE: made compatible with later versions of Xerces where getVersion // is no longer statically available. // xmlParserVersion = new org.apache.xerces.impl.Version().getVersion(); xmlParserVersion = org.apache.xerces.impl.Version.getVersion(); xmlParserName = "Apache Xerces"; } catch (Exception e) { // ADD: How else can we get the name version number } catch (Error err) { // ADD: How else can we get the name version number } }
/** * Create object that represents tool runtime environment. */ public ToolEnvironment() { try { // FUTURE: made compatible with later versions of Xerces where getVersion // is no longer statically available. // xmlParserVersion = new org.apache.xerces.impl.Version().getVersion(); xmlParserVersion = org.apache.xerces.impl.Version.getVersion(); xmlParserName = "Apache Xerces"; } catch (Exception e) { // ADD: How else can we get the name version number } catch (Error err) { // ADD: How else can we get the name version number } }
versionStr = Version.getVersion(); xercesVersion = 2; } catch (Throwable t) {