diff --git a/LSS/XML2Array.php b/LSS/XML2Array.php index 08729e7..e2c8b97 100644 --- a/LSS/XML2Array.php +++ b/LSS/XML2Array.php @@ -69,7 +69,7 @@ public static function init($version = '1.0', $encoding = 'UTF-8', $format_outpu public static function &createArray($input_xml, $options = 0) { $xml = self::getXMLRoot(); if(is_string($input_xml)) { - $parsed = $xml->loadXML($input_xml, $options); + $parsed = @$xml->loadXML($input_xml, $options); if(!$parsed) { throw new Exception('[XML2Array] Error parsing the XML string.'); }