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
369 Views Asked by Daniele Oriana At
1
There are 1 best solutions below
Related Questions in XML
- Postgres && statement Error in Mybatis Mapper?
- Sorting items after building an XML feed?
- C# XML ModelBinding - ASP.NET Core 8 Web API - required field not found
- How can I create an automatic table of contents in docx without the text being bold?
- Odoo 16 Make Fields Readonly Using XPath
- Using similar tags for different objects in XML
- Android Studio problem like gradle sync project failed and plugin error, version 2023.2.1 Iguana
- error: cannot find symbol View root = inflater.inflate(R.layout.toolbar, parent, false);
- Android camera application restriction to 12 mp
- Azure Data Factory Copy Activity Only Importing First Row of XML file
- I am not able to remove space below the navigation view icon in android studio. What;s wrong with code?
- Field can be converted to a local variable ,convert field to local variable in onCreate method
- Deserialize XML with optional different name
- Retrieve tags from xml using python
- Getting attribute from xml and printing it error
Related Questions in MODEL
- Can raw means and estimated marginal means be the same ? And when?
- Can't load the saved model in PyTorch
- Question answering model for determine TRL(Technology Readiness Levels)
- Cannot trace my own model using torch.jit.trace
- Get json field value in sqlite model from view django
- Loading the pre-trained model from the .h5 file (Works on Colab but does not work on Local)
- how to get a model in js for odoo 16
- Is there a way to connect two models in mern and access user id of other model
- Using service in the constructor of a MODEL (angular)
- Beta coefficient of direct effect increases after controlling for mediator
- Running a pretrained model on real-time applications
- How to create two separate sets of data (one for daylight hours and another for nighttime hours) from hourly netcdf model output using CDO
- How to understand the Sensor Setting Property ID in the SIG Mesh model
- ValueError: Unknown layer: 'Custom>TFMPNetMainLayer'
- How to generate thumbnail images or GIFs from .GLB 3D models in Python?
Related Questions in ECLIPSE-EMF
- How can I download the raw metamodels from my EMF registry?
- Is there a way to check the Mac version using Platform.OS on Windows?
- How to build Windows and Mac plugins simultaneously in Eclipse
- What is the difference between weaving models and mapping models in MDE?
- Implementation Issues with Log4j in Eclipse EMF RCP Using Java 17 and not OSG
- Is there any documentation/release note available for each eclipse sphinx version released
- "The import org.eclipse cannot be resolved" using EMF
- Eclipse Epsilon EMF Eugenia not appearing
- Xtext define a syntax with subpakages in the ecore file
- What files should be commited in the case of an Eclipse modeling project?
- How to get relative paths in the traces model when executing ATL transformation programmatically through EMFTVM?
- Get UUID from a EMF/XMI resource using PyEcore
- Xtext integration in Maven program returning error - using injector and MyDslStandaloneSetup
- Eclipse not showing 'Domainmodel Content-Type' in Preferences
- Add an ad-hoc primitive tag/annotation to an EObject instance
Related Questions in ECORE
- "The import org.eclipse cannot be resolved" using EMF
- Xtext define a syntax with subpakages in the ecore file
- EMF ISO20022 Repository - Message Definitions link to Data Dictionary
- Generate Java Code from OCLInEcore in MWE2 Workflow
- use Ecore/XMI editor for instance creation from Ecore metamodel
- Eclipse Xtext : How to force Xtext to look for a reference with a specific Name
- Xtext - eCore model, serializer can't find the model to import
- EMF: How to set values for attributes of a Class?
- Creating XTEXT Grammar from existing Ecore Model
- Ecore EMF PackageNotFoundException
- How to set the EType in Ecore Modeling Project?
- EMF model-to-model
- EMF - load an XML file and create model at runtime
- Eclipse OCL google.inject creation exception
- EMF: Defining a generic containment reference in an Ecore metamodel
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 # Hahtags
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).