|
Re: Best method for generating code from XSD [message #1705155 is a reply to message #1704929] |
Wed, 12 August 2015 13:25   |
|
Xpand has built-in support for XSD type systems, i.e. the metamodel is already implicit. The org.eclipse.xtend.typesystem.xsd plugin provides this metamodel and also a reader for XML models based on the given schema.
Under the hood it used EMF XSD, and with that API it is also possible to generate an EMF metamodel and metaclasses from the XSD, and use a XMLResourceFactory to read XML with means of EMF. It would be a bit more work to explain how this is actually done.
However, if you have that you can also use Xtend very comfortable to generate code.
Kind regards,
~Karsten
Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02069 seconds