Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Can't load Schema
Can't load Schema [message #562610] Fri, 27 September 2002 19:20
Eclipse UserFriend
Originally posted by: troynet+web.ugcs.net

I'm trying the example from Shane Curcuru's article:

ResourceSet resourceSet = new ResourceSetImpl();
XSDResourceImpl xsdSchemaResource = /* line 40 */
(XSDResourceImpl) resourceSet.getResource(
URI.createDeviceURI( schemaURL, true));

and my schemaURL looks like this:
file:/home/troy/xxml/schema/xxml.xsd

But I get this error when I run:

Exception in thread "main" java.lang.RuntimeException: Cannot create a
resource for ' + uri + '
at
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResou rce(ResourceSetImpl.java:271)
at org.xxml.schema.Schema.<init>(Schema.java:40)
at org.xxml.schema.SchemaUI.main(SchemaUI.java:112)


Why would I get this error?
Previous Topic:Generic schema based Xml file editor?
Next Topic:XSD Schema schema discovery problem
Goto Forum:
  


Current Time: Fri Apr 19 02:13:17 GMT 2024

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

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

Back to the top