-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import XMI fails with A JavaScript error occured in the main process #18
Comments
same |
I could import import a XMI v2.1.1 export from Modelio 4.1 into StarUML 5.1, //var XMINode = dom.getElementsByTagName('XMI')[0]
var XMINode = dom.getElementsByTagName('xmi:XMI')[0]
if (typeof(XMINode) == 'undefined') {
XMINode = dom.getElementsByTagName('XMI')[0]
}
if (typeof(XMINode) == 'undefined') {
// we are desperate now, try to start from UML:Model
var XMIModelNode = dom.getElementsByTagName('uml:Model')[0]
if (typeof(XMIModelNode) != 'undefined' && XMIModelNode != null && typeof(XMIModelNode.parentNode) != 'undefined' ) {
XMINode = XMIModelNode.parentNode // this might not be the xmi node, but seems equivalent enough to us
}
}
if (typeof(XMINode) == 'undefined') {
// still no luck, out of options
window.alert('Could not find root element, Import failed.')
return
} Maybe someone can improve the code to production quality and make a pull request. |
Someone have fix it? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduce: File >> Import >> XMI Import (v2.1) >> SID Models.xmi
The text was updated successfully, but these errors were encountered: