2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-06 06:08:44 +00:00

xml-warning anstatt Fehler, homematic bei FS20-Buttons

git-svn-id: https://svn.fhem.de/fhem/trunk@1548 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nitroxmh 2012-05-08 17:40:47 +00:00
parent 0118488248
commit 5be808565f

View File

@ -41,7 +41,7 @@ include "include/gnuplot.php";
include "include/functions.php";
$pgm3version='120508';
$pgm3version='120508a';
@ -325,19 +325,20 @@ if (!(list($xml_parser, $live) = new_xml_parser($live))) {
#change the xmllist into an intern array
foreach($output as $data) {
$data = $output[0];
if (!xml_parse($xml_parser, $data)) {
$now=date($timeformat);
echo("There is a xmllist file for debugging under $AbsolutPath/tmp/debugxml$now<br><br>");
$handle=fopen("tmp/debugxml$now","w");
fwrite($handle,$outputvar);
fclose($handle);
die(sprintf("XML error: %s at line %d\n",
$warning=sprintf("XML error: %s at line %d\n",
xml_error_string(xml_get_error_code($xml_parser)),
xml_get_current_line_number($xml_parser)));
};
}
xml_get_current_line_number($xml_parser));
echo $warning;
};
@ -347,8 +348,6 @@ xml_parser_free($xml_parser);
#print_r($stack);
#exit;