Author: mrglavas
Date: Thu Aug 30 13:16:22 2007
New Revision: 571293
URL: http://svn.apache.org/viewvc?rev=571293&view=rev
Log:
Fixing JIRA Issue #1266:
http://issues.apache.org/jira/browse/XERCESJ-1266
Adding support for "XMLVersion" to hasFeature().
Modified:
xerces/java/trunk/src/org/apache/xerces/dom/CoreDOMImplementationImpl.java
Modified:
xerces/java/trunk/src/org/apache/xerces/dom/CoreDOMImplementationImpl.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/dom/CoreDOMImplementationImpl.java?rev=571293&r1=571292&r2=571293&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/dom/CoreDOMImplementationImpl.java
(original)
+++ xerces/java/trunk/src/org/apache/xerces/dom/CoreDOMImplementationImpl.java
Thu Aug 30 13:16:22 2007
@@ -115,7 +115,7 @@
* This is interpreted as "Version of the DOM API supported for the
* specified Feature", and in Level 1 should be "1.0"
*
- * @return true iff this implementation is compatable with the specified
+ * @return true iff this implementation is compatible with the specified
* feature and version.
*/
public boolean hasFeature(String feature, String version) {
@@ -163,6 +163,10 @@
|| version.equals("1.0")
|| version.equals("2.0")
|| version.equals("3.0")))
+ || (feature.equalsIgnoreCase("XMLVersion")
+ && (anyVersion
+ || version.equals("1.0")
+ || version.equals("1.1")))
|| (feature.equalsIgnoreCase("LS")
&& (anyVersion || version.equals("3.0")));
} // hasFeature(String,String):boolean
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]