|XSD To ECore to XML [message #634650]
||Fri, 22 October 2010 15:20
| Jean Duracel
Registered: October 2010
I'm trying to generate an XML File from it's XSD by using it's associated ecore file but without generating the pojos.
I started by loading the ecore file and then by using ModelDataGenerator I produced my List<EObject>.
Then I wanted to convert this list by using :
EMFModelConverter emfModelConverter = new EMFModelConverter();
List<Object> lo = emfModelConverter.convert(leo);
In order to have the possibility to convert my list of Object by using an ModelXMLSaver.
The trouble is that since I haven't generated the pojos associated to my model there is no ModelPackage registered and then I get an error on the EMFModelConvertion.
Please can you help or give me some advice ... Is there some other way to get a generated XML file from its XSD ? Is it possible to get a dynamic PackageModel in order to register it and having the emfModelConvertion working ...
Thanks in advance for you comments.
[Updated on: Fri, 22 October 2010 15:37]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.08433 seconds