diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java index c525fd7b28..c1796c3ca2 100644 --- a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java +++ b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java @@ -738,8 +738,7 @@ public class ComponentBuilderImpl { // create schema factory for XML schema SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); - // Equivalent to getSchema().getSchemaDocument(), but allows us to support older versions of XmlSchema - Document schemaDom = xsdDefinition.getSchema().getAllSchemas()[0]; + Document schemaDom = xsdDefinition.getSchema().getSchemaDocument(); String valueSchema = null; Schema schema = null; |