|
Re: XML2XML transformation [message #1782606 is a reply to message #1782588] |
Tue, 27 February 2018 05:46 |
Ed Merks Messages: 33137 Registered: July 2009 |
Senior Member |
|
|
You can use org.eclipse.emf.ecore.xmi.impl.GenericXMLResourceFactoryImpl to load arbitrary XML. If there are XML Schema's available, those will be used to create corresponding Ecore models that are used to represent the instances. If not, just an org.eclipse.emf.ecore.xml.type.XMLTypeDocumentRoot is created at the root of the resource, and it contains instances of org.eclipse.emf.ecore.xml.type.AnyType, EMF's representation of an XML element, all using demand created metadata. You can read this article for details:
http://www.theserverside.com/news/1364302/Binding-XML-to-Java
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.01818 seconds