Opening UML XML File

已回答

I received an XML document with a .UML extension. It appears to have been exported by IntelliJ. However, when I open the document in IntelliJ, I just see an empty UML tab. Is it possible to have IntelliJ create the UML diagram from the XML export?

Below is a sample of the document:

<?xml version="1.0" encoding="UTF-8"?>
<Diagram>
<ID>DATABASE</ID>
<OriginalElement>fdbaf18a-6202-422e-a32d-f56983e2e51c.SCHEMA:main.public</OriginalElement>
<nodes>
<node x="4350.415954968943" y="2250.0">fdbaf18a-6202-422e-a32d-f56983e2e51c.TABLE:main.public.orders_ordermodification</node>
<node x="47.375" y="2294.0">fdbaf18a-6202-422e-a32d-f56983e2e51c.TABLE:main.public.products_fixedpricepaymentmethod</node>
<node x="5614.566558833679" y="418.0">fdbaf18a-6202-422e-a32d-f56983e2e51c.TABLE:main.public.orders_deliverycost</node>
...
</nodes>
<notes />
<edges>
<edge source="fdbaf18a-6202-422e-a32d-f56983e2e51c.TABLE:main.public.orders_ordergroupheader" target="fdbaf18a-6202-422e-a32d-f56983e2e51c.TABLE:main.public.orders_ordergroup">
<point x="0.0" y="-124.5" />
<point x="3364.259704968943" y="1331.0" />
<point x="4450.760308833678" y="1331.0" />
<point x="-114.375" y="245.5" />
</edge>
...
</edges>
<settings layout="Hierarchic Group" zoom="0.15638051044083526" x="3222.5" y="1651.5" />
<SelectedNodes>
<node>fdbaf18a-6202-422e-a32d-f56983e2e51c.TABLE:main.public.tags_tag</node>
</SelectedNodes>
<Categories>
<Category>Key columns</Category>
<Category>Columns</Category>
<Category>Virtual foreign keys</Category>
</Categories>
</Diagram>

1

Can you open the file using any other UML editor? For example, here is online one: 

https://www.umletino.com/

0

No. That site does not show anything for the file in question or a file that I exported myself.

Looking at the text further, there does not appear to be enough info to actually re-create the UML diagram that you would see from the IntelliJ diagram window. I'm now assuming that you have to have the classes or database schema in your project in order to render the UML.

1

请先登录再写评论。