xml tree generator