I'd like to programmatically generate a draw.io map diagram from nested XML/JSON exported from Zotero (individual items nested in sub-collections and collections).
I already have the basic JSON/XML, which can be adapted to draw.io's format, but I'm not clear how. There seems to be no schema for the app's diagram format, and the source XML of existing diagrams includes a lot of style and layout information that I want to avoid having to calculate -- I am assuming, given that the Layout option in the app is automatic, that there must be a way to automatically render a diagram without having to include manually-specified style/layout info.
So I have three questions:
- Is there a standard XML/JSON scheme for hierarchical draw.io map diagrams?
- Is it possible to give draw.io just the relationship info between elements, and have it determine the layout automatically (akin to the automatic
Arrange > Layout
options within the app)? - Within a draw.io map, can a node be connected to more than one parent?