Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » binding during multiple loads
binding during multiple loads [message #587101] Thu, 13 May 2004 22:10
James Taylor is currently offline James TaylorFriend
Messages: 21
Registered: July 2009
Junior Member
If I load Schema A that includes Schema B and then separately load Schema
C that also includes Schema B, is there any way that I can get Eclipse XSD
to reuse and rebind the Schema B that was already loaded when Schema C is

For example, using the three schemas below, if I first load cat.xsd and
then separately load dog.xsd, I'd like to be able to tell XSD to reuse the
commonly included animal.xsd schema such that if I ask for the members of
the animal substitution group, I'd get back both cat and dog. Otherwise,
I'm forced to figure out the dependencies up front and load everything at
once which in my case could be 1500+ schemas. Being able to load them
as-needed would save on memory and processing time.

One more related question: has anyone done any memory and performance
profiling on loading XSD schemas? Is there an rough approximation I could
use based on the size of the schema?



Schema A) cat.xsd:
<xs:schema xmlns:xs="">
<xs:include schemaLocation="animal.xsd"/>
<xs:element name="cat" substitutionGroup="animal"/>

Schema B) animal.xsd:
<xs:schema xmlns:xs="">
<xs:element name="animal" abstract="true"/>

Schema C) dog.xsd:
<xs:schema xmlns:xs="">
<xs:include schemaLocation="animal.xsd"/>
<xs:element name="dog" substitutionGroup="animal"/>
Previous Topic:Anonymous types
Next Topic:Resource notifications
Goto Forum:

Current Time: Tue Oct 20 01:08:58 GMT 2020

Powered by FUDForum. Page generated in 0.01835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top