GNOME Bugzilla – Bug 143455
Allow to import Visio UML via SVG
Last modified: 2019-03-20 11:12:17 UTC
I'm trying to import the following .svg created by Visio. Dia says: PDM_brain_misc.svg:37: namespace error : Namespace prefix xlink for href on use is not defined <use xlink:href="#lend4" transform="scale(4.3) "/> ^ PDM_brain_misc.svg:41: namespace error : Namespace prefix xlink for href on use is not defined <use xlink:href="#lend4" transform="scale(4.3) "/> ^ The SVG looks good in Adobe SVG Viewer. Thanks!
Created attachment 28209 [details] sample svg
Btw, what's the best approach on dia recognizing that diagram as UML? An independend script which converts from svg to dia?
The usual response would be to mark this bug as a duplicate of bug #108502, as both Dia SVG Import Filter are known to be limited. But this one is different... - First : you have attached a reasonable example - Second : while looking at it with the Python SVG import filter I was able to reproduce two crashes, thanks for the nice stress test file ;-) - Third : to me it looks like a reasonable goal to import UML diagrams created by Visio, at least as the SVG doesn't look so bad as I expected :) To your BTW: the best way to let Dia recognize UML generated by other programs is probably not SVG as interchange format. IIRC there is format to interchange these called XMI, still there is no XMI import filter available for Dia.
Although diasvg_import.py can now load the file without crashing the result is far from useable. There are some things in it which would probably require the use of a real svg import library. Nothing really planned yet. Anyway marking as enhancement.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/107.