Managed to find out how to create a element tree, still having trouble retrieving the root