Creating a new EMF Project from XSD [message #390748] |
Mon, 24 January 2005 17:13 |
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 |
Ed Merks Messages: 33218 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
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03328 seconds