Convert XML into PHP objects