Problem with XML modeling: Class 'name' is not found or is abstract. [message #1153545] |
Thu, 24 October 2013 17:37  |
Lefteris Skoutaris Messages: 24 Registered: March 2013 |
Junior Member |
|
|
Dear all,
I am new to eclipse and I am trying to model with EMF an XML instance file.
I have created a very very simple xml file and schema just for testing purposes and solving this problem. The xml instance below is valid against the schema. Therefore, there must be some kind of an issue with EMF?
XML instance:
<?xml version="1.0" encoding="utf-8"?>
<cdm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="file:/C:/Users/eleftherios.skoutari/workspace-indigo/XSDs/cdm_xml_bluebook_schema.xsd" id="CCSDS_CDM_VERS" version="1.0">
<header>
<CREATION_DATE>2010-03-12T22:31:12.000</CREATION_DATE>
</header>
</cdm>
Schema:
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="cdm">
<xs:complexType>
<xs:sequence>
<xs:element name="header">
<xs:complexType>
<xs:sequence>
<xs:element name="CREATION_DATE" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="xs:string" use="required"/>
<xs:attribute name="version" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
I have created a project,loaded the schema and generated the code. When I run the instance in an editor I get the following error:
org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'cdm' is not found or is abstract.
Any ideas why this is the case? Thank you in advance for any help you can provide!
[Updated on: Thu, 24 October 2013 17:39] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01872 seconds