From 2e57e301aa5a5c72e538e731c04cfb9a6c058e69 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 5 Oct 2011 07:22:58 +0000 Subject: Change back to use getSchemaDocument instead of getAllSchema()[0]. This was changed back in r1043206 to try to make the Tuscany code compatible with diff version of xmlSchema but this can cause loops in xmlschema so go back to getSchemaDocument and require using the Tuscany level of xmlSchema git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1179072 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/modules/builder/src') 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; -- cgit v1.2.3