Well, in theory you can use XmlOptions.setEntityResolver() and implement an 
EntityResolver that only resolves "your" schemas.

But if you are referencing an element in that GML Schema, then you need it. And 
if that Schema is large, I don't see a way around it, other than extract the 
few elements you think you need from the GML Schema into a separate file. 
Basically, an XSD file is the smallest "compilation unit". You can't compile 
anything smaller than that (like in Java, you can't compile anything less than 
a Java file, and if that file depends on something else, you need all the 
dependencies recursively).

Radu

> -----Original Message-----
> From: PianoJaG83 [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 29, 2008 7:49 AM
> To: [email protected]
> Subject: Urgent: compiling schemas with many dependencies
> 
> 
> My project had previously been using XmlBeans.compileXsd(...) using
> XmlOptions.setCompileDownloadUrls() without a problem.  
> However, recently we added an element reference to a GML 
> element, whose XSD includes a large number of other XSDs.  
> All we really want is that one element and its 2-3 dependency 
> elements/attributes.  However, using
> XmlOptions.setCompileDownloadUrls() appears to build the 
> entire GML included XSD structure (I'm assuming by design).  
> This nearly triples the number of classes generated, takes 10 
> times as long to compile, and renders our model essentially 
> unusable.  Is there a way I can get access to these 3-4 
> external XSD elements without including the entire GML 
> structure?  We want to use
> XmlOptions.setCompileDownloadUrls() on our own XSDs, but not 
> on external ones.
> --
> View this message in context: 
> http://www.nabble.com/Urgent%3A-compiling-schemas-with-many-de
> pendencies-tp19221347p19221347.html
> Sent from the Xml Beans - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to