private function xmlToObj($fileContents)
  {
    $fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents);
    $fileContents = trim(str_replace('"', "'", $fileContents));
    $simpleXml    = simplexml_load_string($fileContents, null, LIBXML_NOCDATA);

    return $simpleXml;
  }
private function xmlToObj($fileContents)
  {
    $fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents);
    $fileContents = trim(str_replace('"', "'", $fileContents));
    $simpleXml    = simplexml_load_string($fileContents, null, LIBXML_NOCDATA);

    return $simpleXml;
  }
private function xmlToObj ( $ fileContents ) { $ fileContents = str_replace ( array ( "\n" , "\r" , "\t" ) , '' , $ fileContents ) ; $ fileContents = trim ( str_replace ( '"' , "'" , $ fileContents ) ) ; $ simpleXml = simplexml_load_string ( $ fileContents , null , LIBXML_NOCDATA ) ; return $ simpleXml ; }
Convert XML string to object

@param $fileContents

@return \SimpleXMLElement
Convert XML string to object