Why are you using a SimpleXMLElement here ?