Really need to rebuilt the whole hierarchy traversal.  Especially for JSON, but for XML as well.