class CI_ManipulateXML { var $xml=''; function CI_ManipulateXML($xmlcontent) { $this->xml=$xmlcontent; } function ConvertXML() { try { $xmlobject = new SimpleXMLElement($this->xml); if ($xmlobject == false) { return false; } } catch (Exception $e) { return false; } return $xmlobject; } }