Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Creating a new EMF Project from XSD
Creating a new EMF Project from XSD [message #390748] Mon, 24 January 2005 17:13 Go to next message
Eclipse User
Originally posted by: MARKREAD.uk.ibm.com

I have followed several tutorials explaining how to create an Ecore model
based on an XSD source file. After having selected 'load from XML Schema',
selecting the relevant schema file you are presented with package
selection screen which normally lists at least 2 packages, one being
generated from the specified schema file, and the other generated due to
every schema's reference to a site similar to
"http://www.w3.org/2001/XMLSchema".

When trying to load the following schema, we are presented only with the
package generated from the below schema and not a package referencing the
above URL.


<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="Config"/>
</xsd:schema>

Can anyone help?


Many Thanks,

Mark Read
Re: Creating a new EMF Project from XSD [message #390750 is a reply to message #390748] Mon, 24 January 2005 19:08 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26152
Registered: July 2009
Senior Member
Mark,

In your schema below, you don't use any types from the XML Schema
namespace, so a package for it isn't needed. Note that in EMF 2.0 you
shouldn't see that XML Schema package anyway because
org.eclipse.emf.ecore.xml.type.XMLTypePackage is always available to
represent it.


Mark Read wrote:

> I have followed several tutorials explaining how to create an Ecore
> model based on an XSD source file. After having selected 'load from
> XML Schema', selecting the relevant schema file you are presented with
> package selection screen which normally lists at least 2 packages, one
> being generated from the specified schema file, and the other
> generated due to every schema's reference to a site similar to
> "http://www.w3.org/2001/XMLSchema".
>
> When trying to load the following schema, we are presented only with
> the package generated from the below schema and not a package
> referencing the above URL.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <xsd:element name="Config"/>
> </xsd:schema>
>
> Can anyone help?
>
>
> Many Thanks,
>
> Mark Read
>
>
Previous Topic:Problem Edting Generated Model
Next Topic:Error when invoking 'load' on a Resource
Goto Forum:
  


Current Time: Thu Oct 30 16:51:59 GMT 2014

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

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