Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to provide a different schema content
How to provide a different schema content [message #583414] Wed, 11 February 2004 23:34
Joshua Hui is currently offline Joshua Hui
Messages: 23
Registered: July 2009
Junior Member
Hi,

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.

Thanks.

Joshua
Previous Topic:Unresolved element when validate using DOM format
Next Topic:xsd location and import problem
Goto Forum:
  


Current Time: Thu Sep 18 15:45:55 GMT 2014

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

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