tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdan...@apache.org
Subject svn commit: r1043206 - /tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
Date Tue, 07 Dec 2010 21:19:48 GMT
Author: bdaniel
Date: Tue Dec  7 21:19:48 2010
New Revision: 1043206

URL: http://svn.apache.org/viewvc?rev=1043206&view=rev
Log:
Change method call to support older versions of XmlSchema

Modified:
    tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java?rev=1043206&r1=1043205&r2=1043206&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
Tue Dec  7 21:19:48 2010
@@ -731,7 +731,8 @@ public class ComponentBuilderImpl {
                         // create schema factory for XML schema
                         SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
                                       
-                        Document schemaDom = xsdDefinition.getSchema().getSchemaDocument();
+			// Equivalent to getSchema().getSchemaDocument(), but allows us to support older versions
of XmlSchema
+                        Document schemaDom = xsdDefinition.getSchema().getAllSchemas()[0];

                         
                         String valueSchema = null; 
                         Schema schema = null;



Mime
View raw message