| xsi:schemaLocation in output XMI [message #1764595] |
Wed, 31 May 2017 10:40  |
Eclipse User |
|
|
|
Hello,
I properly translate a .xmi UML model into another model which follows a custom .ecore metamodel using a simple set of ATL rules. The point is that the output .xmi model doesn't have the "xsi:schemaLocation" attribute, and when I try to open the file in Eclipse I get the following error: "org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri '<metamodel_namespace>' not found.
This problem is solved when I manually add xsi:schemaLocation in the XMI tag, for example:
<xmi:XMI xmi:version="2.0" xmlns:xmi="<xmi_namespace>" xmlns:prov="<metamodel_namespace>" xsi:schemaLocation="<metamodel_namespace> file<custome_metamodel_path>.ecore">
I consider that adding the xsi:schemaLocation attribute manually is not a suitable solution, and I would like to know if anyone knows a possible solution to add the xsi:schemaLocation automatically when I generate the output model.
Thanks!
CSA
|
|
|
|
Powered by
FUDForum. Page generated in 0.03017 seconds