Thanks mirod,
I'm still not sure I understand what you mean. Do you mean I have to skip every other element for this to work right? I thought in order to print out an entire document tree you had to print out from the root, regardless of how many elements there are in the tree. I only put one element in the tree for my example; in my real program there are more.
Thanks,
Jezzica85