
Ian Grant wrote:
Ah, this is what I did not appreciate. I had just assumed that inkscape/sodipodi used libxml, and that they would be using the libxml tree structure and therefore that gdome2 could be wedged in somehow. OK, I will shut up now until I've looked at the code. Sorry :-)
Yeah. Whatever allows the nodes to be addressable in XPath style, like from Javascript. It needs to -work- like it, but the code of course doen't have to be the same. Like if you can express a node-setting like this:
myDrawing.landscape.tree.bird.color="blue";
(named nodes are like g[@id="bird"])
By the way, if I have some free time next week, I might look into what it would take to bind Mozilla's js engine with the tree. It is extremely architecture-independent.
Bob