axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandak...@apache.org
Subject svn commit: r560939 - /webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/bean/ValidateXMLFile.java
Date Mon, 30 Jul 2007 12:29:07 GMT
Author: sandakith
Date: Mon Jul 30 05:29:07 2007
New Revision: 560939

URL: http://svn.apache.org/viewvc?view=rev&rev=560939
Log:
fixing AXIS2-3033 on trunk

Modified:
    webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/bean/ValidateXMLFile.java

Modified: webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/bean/ValidateXMLFile.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/bean/ValidateXMLFile.java?view=diff&rev=560939&r1=560938&r2=560939
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/bean/ValidateXMLFile.java
(original)
+++ webservices/axis2/trunk/java/modules/tool/axis2-idea-plugin/src/main/java/org/apache/ideaplugin/bean/ValidateXMLFile.java
Mon Jul 30 05:29:07 2007
@@ -23,7 +23,6 @@
 import javax.xml.transform.dom.DOMSource;
 import javax.xml.validation.Schema;
 import javax.xml.validation.SchemaFactory;
-import javax.xml.XMLConstants;
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.DocumentBuilder;
 
@@ -34,19 +33,17 @@
 
 import java.io.StringReader;
 
-
+/**
+ * this calss used for check service xml validation
+ */
 public class ValidateXMLFile {
 
-
-    /**
-     * this calss used for check service xml validation
-     */
-
+    public final String W3C_XML_SCHEMA_NS_URI = "http://www.w3.org/2001/XMLSchema";
 
     public  boolean Validate(String args) {
         try {
             // define the type of schema  get validation driver:
-            SchemaFactory schemafactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
+            SchemaFactory schemafactory = SchemaFactory.newInstance(W3C_XML_SCHEMA_NS_URI);
 
             // create schema by reading it from an XSD file:
             java.net.URL resource = WizardPanel.class.getResource("/resources/service.xsd");



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message