I'm trying to find out the best way of representing a database hierarchy in an xml document. The most challenging piece of this puzzle is that some child nodes can have multiple parents.

I've seen references to ID/IDREF type syntax but I wasn't sure if there's a better way of handling this. Any suggestions would be greatly appreciated.