Cast SimpleXMLElement to string