I have the following type in an xsd:
<xs:any namespace="##any" processContents="skip" maxOccurs="unbounded"/>
I created this type in Ecore:
I tried to inject an xml containing the following tags:
But it crashes
org.eclipse.m2m.atl.core.ATLCoreException: Error loading test.xml: org.eclipse.emf.ecore.xmi.FeatureNotFoundException: Feature 'Vendor' not found.
The code used to inject models in metamodels is tested and working.
Even this test.xml is loaded correctly if I remove the Vendor tag.
My question is how to map the xsd any to an ecore type so it can be loaded?
After debugging, it seems that the code I use to inject the model into the ecore model is not complete: the extendedmetadata is always null
// Load in metamodel
IReferenceModel metamodel = modelFactory.newReferenceModel();
model = modelFactory.newModel(metamodel);
How do I tell it to load the metadata?