What is simpleXML ?
SimpleXML is an extension which allows us to easily handle mechanism and retrieve XML data.
It provides an easy way of getting an element’s name, attributes and textual content if you know the XML document’s structure or layout.
SimpleXML turns an XML document into a data structure you can iterate through like a collection of arrays and objects.
SimpleXMLElement error :
it requires certain extension to be installed on server otherwise you may get error such as ‘SimpleXMLElement Not Found Error ‘.
if you get those errors please simply install php-xml, php-simplexml that should sort the issue for you.