You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by bi...@apache.org on 2009/06/22 13:36:39 UTC
svn commit: r787207 -
/webservices/commons/branches/modules/XmlSchema/1_4_X_BRANCH/src/main/java/org/apache/ws/commons/schema/tools/ReadSchemaFromURL.java
Author: bimargulies
Date: Mon Jun 22 11:36:39 2009
New Revision: 787207
URL: http://svn.apache.org/viewvc?rev=787207&view=rev
Log:
WSCOMMONS-482
Modified:
webservices/commons/branches/modules/XmlSchema/1_4_X_BRANCH/src/main/java/org/apache/ws/commons/schema/tools/ReadSchemaFromURL.java
Modified: webservices/commons/branches/modules/XmlSchema/1_4_X_BRANCH/src/main/java/org/apache/ws/commons/schema/tools/ReadSchemaFromURL.java
URL: http://svn.apache.org/viewvc/webservices/commons/branches/modules/XmlSchema/1_4_X_BRANCH/src/main/java/org/apache/ws/commons/schema/tools/ReadSchemaFromURL.java?rev=787207&r1=787206&r2=787207&view=diff
==============================================================================
--- webservices/commons/branches/modules/XmlSchema/1_4_X_BRANCH/src/main/java/org/apache/ws/commons/schema/tools/ReadSchemaFromURL.java (original)
+++ webservices/commons/branches/modules/XmlSchema/1_4_X_BRANCH/src/main/java/org/apache/ws/commons/schema/tools/ReadSchemaFromURL.java Mon Jun 22 11:36:39 2009
@@ -40,12 +40,14 @@
import org.xml.sax.SAXException;
import org.apache.ws.commons.schema.XmlSchemaCollection;
-import org.custommonkey.xmlunit.XMLConstants;
/**
- *
+ * Utility class for testing schema reading.
*/
public class ReadSchemaFromURL {
+
+ // in 1.4 there is no constant for this in the JRE.
+ private final static String SCHEMA_URI = "http://www.w3.org/2001/XMLSchema";
/**
* Read a schema from a URL, perhaps provoking errors.
@@ -77,13 +79,13 @@
public String getNamespaceURI(String prefix) {
if ("xsd".equals(prefix)) {
- return XMLConstants.W3C_XML_SCHEMA_NS_URI;
+ return SCHEMA_URI;
}
return null;
}
public String getPrefix(String namespaceURI) {
- if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(namespaceURI)) {
+ if (SCHEMA_URI.equals(namespaceURI)) {
return "xsd";
}
return null;