more work
authorChristian Weiske <cweiske@cweiske.de>
Tue, 14 Dec 2010 19:26:08 +0000 (20:26 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 14 Dec 2010 19:26:08 +0000 (20:26 +0100)
Wrt3g/HtmlParser.php

index 246cb6f..d887671 100644 (file)
@@ -133,12 +133,11 @@ class Wrt3g_HtmlParser
             $titleItems = $xpath->query('td[@width=125]/text()', $tr);
             $valueItems = $xpath->query('td[@width=296]/*[1]', $tr);
             if ($titleItems->length && $valueItems->length) {
-                $title = $titleItems->item(0);
-                $value = $valueItems->item(0);
+                $title = substr($doc->saveXML($titleItems->item(0)), 8, -2);
+                $value = $doc->saveXML($valueItems->item(0));
             
                 var_dump(
-                    $doc->saveXML($title) . "\n"
-                    . $doc->saveXML($value) . "\n\n"
+                    $title, $value
                 );
             }
         }