PHP to parse an XML and create a table