mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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:
parent
0118488248
commit
5be808565f
@ -41,7 +41,7 @@ include "include/gnuplot.php";
|
|||||||
include "include/functions.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
|
#change the xmllist into an intern array
|
||||||
foreach($output as $data) {
|
$data = $output[0];
|
||||||
if (!xml_parse($xml_parser, $data)) {
|
if (!xml_parse($xml_parser, $data)) {
|
||||||
$now=date($timeformat);
|
$now=date($timeformat);
|
||||||
echo("There is a xmllist file for debugging under $AbsolutPath/tmp/debugxml$now<br><br>");
|
echo("There is a xmllist file for debugging under $AbsolutPath/tmp/debugxml$now<br><br>");
|
||||||
$handle=fopen("tmp/debugxml$now","w");
|
$handle=fopen("tmp/debugxml$now","w");
|
||||||
fwrite($handle,$outputvar);
|
fwrite($handle,$outputvar);
|
||||||
fclose($handle);
|
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_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);
|
#print_r($stack);
|
||||||
#exit;
|
#exit;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user