Added correct handling simpleXML.