Question Generating from XSD [message #1764218] |
Fri, 26 May 2017 13:42  |
Eclipse User |
|
|
|
There must be a workaround for this problem. I would like to what it is.
Mucho thanks to who ever knows this.
I generated an EMF graph from the a schema that contains the following fragment. The fragment shows and element and it's type:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://standards.ieee.org/IEEE1516-2010" xmlns:ns="http://standards.ieee.org/IEEE1516-2010" targetNamespace="http://standards.ieee.org/IEEE1516-2010" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2010">
<xs:element name="objectModel" type="objectModelType"/>
<xs:complexType name="objectModelType">
<xs:sequence>
<xs:element name="modelIdentification" type="modelIdentificationType" minOccurs="0">
<xs:annotation>
<xs:documentation>documents certain key identifying information within the object model description
</xs:documentation>
</xs:annotation>
</xs:element>
...more xsd...
The generated EMF cannot read the following, valid XML. It fails at the first element shown:
<objectModel xsi:schemaLocation="http://standards.ieee.org/IEEE1516-2010 http://standards.ieee.org/downloads/1516/1516.2-2010/IEEE1516-DIF-2010.xsd" xmlns="http://standards.ieee.org/IEEE1516-2010" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
...more xml...
and yields the following error:
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'objectModel' is not found or is abstract. (file:/Users/gcr1/hopeWorkspace/interaction-injection/output/TripleFederation.xml, 2, 252)
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04551 seconds