public static function getXML($data, $isFile = true)
	{
		// Disable libxml errors and allow to fetch error information as needed
		libxml_use_internal_errors(true);

		if ($isFile)
		{
			// Try to load the XML file
			$xml = simplexml_load_file($data);
		}
		else
		{
			// Try to load the XML string
			$xml = simplexml_load_string($data);
		}

		return $xml;
	}
public static function getXML($data, $isFile = true)
	{
		// Disable libxml errors and allow to fetch error information as needed
		libxml_use_internal_errors(true);

		if ($isFile)
		{
			// Try to load the XML file
			$xml = simplexml_load_file($data);
		}
		else
		{
			// Try to load the XML string
			$xml = simplexml_load_string($data);
		}

		return $xml;
	}
public static function getXML ( $ data , $ isFile = true ) { // Disable libxml errors and allow to fetch error information as needed libxml_use_internal_errors ( true ) ; if ( $ isFile ) { // Try to load the XML file $ xml = simplexml_load_file ( $ data ) ; } else { // Try to load the XML string $ xml = simplexml_load_string ( $ data ) ; } return $ xml ; }
Reads a XML file.

@param   string   $data    Full path and file name.
@param   boolean  $isFile  true to load a file or false to load a string.
@return  mixed    XMLElement on success or false on error.
Reads a XML file .