View Revisions: Issue #13411

Summary 13411: Show xml error when import
Revision 2018-02-23 10:36 by DenisChenu
Additional Information I already have the patch idea :
libxml_use_internal_errors(false);
$xml = simplexml_load_string($sXMLdata, 'SimpleXMLElement', LIBXML_NONET);
if($xml!==false) {
foreach(libxml_get_error) …
return $results;
}
if($xml->LimeSurveyDocType != 'Survey') {
 $results['error'] = gT("This is not a LimeSurvey survey structure XML file.");
return $results
}

But io wait for merge master in develop since we don't add new feature in master
Revision 2018-02-23 10:36 by DenisChenu
Additional Information I already have the patch idea :
libxml_use_internal_errors(false);
$xml = simplexml_load_string($sXMLdata, 'SimpleXMLElement', LIBXML_NONET);
if($xml!==false) {
foreach(libxml_get_error) …
return $results;
}
if($xml->LimeSurveyDocType != 'Survey') {
 $results['error'] = gT("This is not a LimeSurvey survey structure XML file.");
return $results
}