Feature: debug for xmllist

git-svn-id: https://svn.fhem.de/fhem/trunk@1486 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nitroxmh
2012-04-25 07:12:23 +00:00
parent d905f01bbc
commit 76e805e3db

View File

@@ -319,10 +319,12 @@ if (!(list($xml_parser, $live) = new_xml_parser($live))) {
}
#change the xmllist into an intern array
foreach($output as $data) {
if (!xml_parse($xml_parser, $data)) {
echo("There is a xmllist file for debugging under $AbsolutPath/tmp/debugxml<br><br>");
$handle=fopen("tmp/debugxml","w");
$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",