create foundation for constructing xml tree.