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?
EMF - load an XML file and create model at runtime
366 Views Asked by Daniele Oriana At
1
There are 1 best solutions below
Related Questions in XML
- Impose component restriction to a series of parsys-CQ
- Wrong xml being inflated android
- Shorten the XSD
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Magento custom block. Can't get block's file
- Layout not shifting up when keyboard is open
- CSV to XML XSLT: How to quote excape
- Getting deeply embedded XML element values
- Saving FileSystemInfo Array to File
- how to apply templates within xsl:for-each
- Spring - configure Jboss Intros for xml with java config?
- Problems with implementing custom actionbar android
- Can Apache Ant be told to cache its XML files?
- Is Log4j2 xml configuration case sensitive?
- How to get a specific node value in XML Pull Parser
Related Questions in MODEL
- How to create dynamic pages without form_for helper in Rails?
- How to get header and data from Models in Python?
- Sails JS - How to Work With Specific Model Attributes from the Associated Controller
- Django Models - How to relate a single class to several variants
- Custom validation message (in model file) that includes a path not working
- Access database with new pacakage in Laravel 4.2
- Rails 4 Attendance system
- How to pass a specific model field to views' functions or methods?
- same name component and model in cakePhp?
- Laravel 5 Eloquent belongsTo() foreign key won't work
- Custom accessors Eloquent Model
- Laravel 5.0.33 Illuminate\Database\Eloquent\Model not found in line 5
- Django override-able abstract field for inlineformset
- Symfony2 proper use for services
- Subclass of Django Model Not Accessible from Superclass
Related Questions in ECLIPSE-EMF
- How to define a map in Xcore
- How do I programmatically add an EGeneric Type Argument to an EAttribute?
- HQL query with @JoinCoumn mapping returns object[] instead of Object
- converting properties in a list using EMF databinding does not convert values
- How to force Acceleo to iterate over a collection in the same order on every template execution?
- what is the use of Eclipse Modelling Frameowrk and Eclipse Graphical Editing Framework?
- How to write a multithreads model with emf?
- How automatically update EMF ResourceSet on file change?
- QVT transformation applied to UML (XMI) models exported from Rhapsody
- How to create a Has-A reference (containment) in ECORE that is available at runtime?
- Regarding Eclispe EMF Command Frame WorK
- How to configure server-side authentication in CDO 3.0 or above?
- Is it possible to use Java5 level annotations to generate EMF using "annotated Java"?
- Is it possible to create an EMF package from java code at runtime?
- EMF-Edit: visualizing the object referencing an object?
Related Questions in ECORE
- Xtext linking service and derived state
- Error while defining a EEList Type attribute in EMF
- Access file create during auto code geneation of xtext
- Load EMF model instance from XMI file
- How can i use generated elements from one emf model in another generated editor
- Websphere | Spring State Machine | UML Error loading
- EMF Modeling question: container and containment
- Xtext and EMF modeling - Opposite relations parsing
- Ecore defaultValue for EByteArray or EFloat with multiplicities
- Xtext define a syntax with subpakages in the ecore file
- "The import org.eclipse cannot be resolved" using EMF
- OCLinEcore and Regex to create valid IPv4 string
- Ecore - Is there a way to refer an ecore metamodel from another ecore metamodel?
- EMF - load an XML file and create model at runtime
- Model composition where instance of class is used multiple times
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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).