|Re: How to provide a different schema content [message #37248 is a reply to message #37145]
||Thu, 12 February 2004 14:39
Originally posted by: merks.ca.ibm.com|
Have a look at the new XSDSchemaLocator API. That should give you a hook
for populating a schema into the resource set using your own mechanism.
Joshua Hui wrote:
> In FAQ section of eclipse/xsd, it has the following question:
> Is there a way to have schema documents which reference other schema
> documents through <include> <import> or <redefine> be fetched from
> locations other than those given in the schemaLocation attribute?
> Yes, you can use a ResourceSet's URIConverter's URI map to map logical
> URIs to physical URIs. You can see an example of that code in
> XSDProtocotypicalSchema traceLoading().
> But if I want to provide the content of the schema directly, instead of
> letting EMF to locate the resource, how can I do it? Basically, what I
> want is something like what EntityResolver provides.
Powered by FUDForum
. Page generated in 0.04662 seconds