Starting to use XML to generate a tree