Inside this Eclipse RCP I can invoke "Inject XML file to XML model (Ecore based)" from the pop-up menu that appears when right click on an XML file
Notice that when a new ATL project is created, the Eclipse workbench changes to ATL perspective, where the options "injection" and "extraction" are not present in the right click pop-up menu. But if you change to AM3 perspective (be careful, "AM3" perspective, not the "AM3 Megamodeling" one) those options should appear.
Is true that this Eclipse bundle is a bit old (3.4.2, with ATL 2.0.0) so I only use it for injection and extraction tasks, dragging the resulting files to other workspaces running on Galileo or Helios Eclipse installations, where ATL 3.x is present.
Thanks Cesar so much. I downloaded this Eclipse RCP and switched to AM3 perspective and it works fine!
I still have another question. I want to use this generated XML model to pass parameters to the ATL transformation. The model has to be in this format:
<param name="hostDemand" value="11"/>
<param name="msgSize" value="3"/>
I have several Excel parameters file and it's a terrible to manually put them in the previous format. That is way I think to inject them to XML model, but the generated XML model doesn't distinguish between the values (e.g. 11) and the parameter's name (e.g. hostDemand) both of them are considered as values for the attribute "value".
I think I need another ATL transformation to transform the generated XML model to the required format in order to pass the parameters. Does anyone have any idea about this transformation or any ATL use case that can help me figure out it.
I don't know how I can get an Element such as "Cell" or "Row" contains the two Attributes and at the same time be able to identify the second attribute in order to change its name to "value" instead of "name". These two attributes contained in two different Elements "Data" and each "Data" element contained in different "cell".