Creates a directory tree from XML