Georg Holzmann wrote:
and this reminds me, that probably connections really should have an id, so you could e.g. delete them directly (like "dyn")
like this:
<nbx ID="nbx1"/> <obj ID="obj1">print <connect ID="blabla" inlet="0"> <from ID="nbx1" outlet="0"/> </connect> </obj>
Maybe it would be better to separate the connections and the objects. To delete an object would also entail deleting any connections referencing that object, which would not affect the remaining objects. It simplifies parsing the file if the objects are listed first, then the connections:
<obj ID="obj1">print </obj> <obj ID="obj2">numberbox </obj> ... <connect ID="connect1"> <from ID="obj1" outlet="0"/> <to ID="obj2" outlet="0"/> </connect> ...
Martin