Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Problem while serializing xsd schema
Problem while serializing xsd schema [message #598171] Fri, 09 June 2006 07:13
Jason is currently offline JasonFriend
Messages: 45
Registered: July 2009
Hi all

I want to construct a schema and save it
My code like this:

saveFile.addSelectionListener(new SelectionListener()
public void widgetSelected(SelectionEvent e)
FileDialog fd = new FileDialog(getShell(), SWT.SAVE);
String filename =;
if (filename == null)

URI fileURI = URI.createPlatformResourceURI(filename);
ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.createResource(fileURI);
catch (Exception ex)

but when I run the application, I get the following error message: The path '/xxx/xxx.xsd' is unmapped
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createP latformResourceO
org.eclipse.emf.ecore.resource.impl.URIConverterImpl.createO utputStream(URIC
at DropTargetTree$5.widgetSelected(

what's the problem?
Previous Topic:Changing namespaces?
Next Topic:Problem while serializing xsd schema
Goto Forum:

Current Time: Sat Jan 23 00:54:02 GMT 2021

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

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

Back to the top