Constructs a tree of the xsd elements