Well, what's the problem? The concept of trees as relationships is simple.
NODE ( id, tag-name, text ) ATTR ( id, attr-name, attr-value ) NODEATRR ( node-id, attr-id ) NODENODE ( node-id, child-node-id )
The keys and connections between the relationships are obvious, I hope. This is ugly and strongly typed, of course, but this is what you get if you want to preserve arbitrary XML.
Joker_vD
source share