Generate XMLTree dinamicaly and recursevely from dict