I too have been looking at the LXFML files trying to figure out which brick is attached to which. The key seems to be in the "boneRefs" element of "Rigid", however they are always listed in linear descending order. From playing with it in LDD, it seems it will even shuffle around the "boneRefs" to ensure the order in "Rigid" is this way. In any case, it seems impossible to determine how branching structures are connected. (Unless they use the transformation data, but that seems absurd)
There must be some logic to it, as importing LXFMLs gives all the connections as you'd expect. Can anybody shed any light?
This seemed an appropriate thread to ask in, apologies if not.