|Re: xs:include and xs:import [message #572423 is a reply to message #22938]
||Wed, 21 May 2003 22:03
| Ed Merks
Registered: July 2009
A schema needs to be contained by a Resource that is contained by a
ResourceSet in order to resolve imports. So if you are creating a schema
from scratch, you need to do something like this:
ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.createResource(uri);
The additional Resources will be loaded into the ResourceSet to contain the
resolved schemas. You can validate those as well. Have a look at
XSDMainTest's support for -validate...
Pae Choi wrote:
> Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?
> I have a couple of diagnostic messages as follows:
> At line #12(5), XSD: The location
> 'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
> resolved; Node = [xs:import]
> At line #19(5), XSD: The location
> 'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
> Any comments?
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.05032 seconds