I have a list of items in a hierarchy, and I\'m attempting to parse this list out into an actual hierarchy of objects. I\'m using modified pre-order tree traversal to store/iter
you should use a database store architecture like nested set
[ https://en.wikipedia.org/wiki/Nested_set_model ]