<?php
$xml = '<html>
<head>
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
</head>
<body>
<img src="http://chart.googleapis.com/chart?chs=280x160&chd=t:0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,69,90,109,233,449,376,379,525,492,571,775,828,573,533,548,874,1575,3493,4167,3814,4925,5378,5304,5757,3420,3202,2557,2765,2424,1607,1763,2846,6531,3921,4434,5906,6411,5120,7219,6526,4060,6951,7261,5942,2946,6788,7190,6827,7361,5476,6776,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0&cht=lc&chds=0,8100&chxr=0,6,20,2|1,0,8100&chtt=29.03.2016+11:25:06&chdlp=bv&chm=B,FF0000,0,0,0&chco=FF0000">
<br>
<table border="0" width="280">
<tbody>
<tr>
<td valign="top">Tag:</td>
<td align="right" valign="top">14.5</td>
<td align="right" valign="top">kWh</td>
<td align="right" valign="top">Monat:</td>
<td align="right" valign="top">690</td>
<td align="right" valign="top">kWh</td>
</tr>
<tr>
<td valign="top">Jahr:</td>
<td align="right" valign="top">1375</td>
<td align="right" valign="top">kWh</td>
<td align="right" valign="top">Gesamt:</td>
<td align="right" valign="top">39482</td>
<td align="right" valign="top">kWh</td>
</tr>
<tr>
<td valign="top">PAC:</td>
<td align="right">6776</td>
<td>W</td>
</tr>
</tbody>
</table>
</body>
</html> ';
$doc = new DOMDocument();
$doc->loadHTML($xml);
$sxml = simplexml_import_dom($doc);
print_r($sxml);
preferences:
19.88 ms | 402 KiB | 5 Q