Daniele Oriana
Daniele Oriana

Reputation: 67

EMF - load an XML file and create model at runtime

the problem is the following: i have an XML file generated by an external tool and i also have an ecore file. Using EMF i want to load this XML file, parse it and create (at runtime) a new model following the structure described in the ecore file. Is this possible? How can i do it?

Upvotes: 0

Views: 340

Answers (1)

Banoffee
Banoffee

Reputation: 862

This is possible, but I am not sure what you are expecting from your question. You want to parse your XML file (which you can do using a variety of XML parsers which exist), and you want to create an EMF model using the generated Java API (see https://www.vogella.com/tutorials/EclipseEMF/article.html#using-the-model-code).

Upvotes: 0

Related Questions