Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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
loaded?

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?

Thanks,

James

Schema A) cat.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="animal.xsd"/>
<xs:element name="cat" substitutionGroup="animal"/>
</xs:schema>

Schema B) animal.xsd:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="animal" abstract="true"/>
</xs:schema>


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


Current Time: Thu Mar 28 16:43:37 GMT 2024

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

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

Back to the top