UpdateCurrencyRate.php
[Pman.Core] / UpdateCurrencyRate.php
index e50362b..062021e 100644 (file)
@@ -65,7 +65,7 @@ class Pman_Core_UpdateCurrencyRate extends Pman
                 'exch' => $c,
                 'expr' => 'USD',
                 'margin_fixed' => 0,
-                'format'=> 'HTML'
+                'format'=> 'CSV'
             );
         }
         
@@ -80,9 +80,9 @@ class Pman_Core_UpdateCurrencyRate extends Pman
         
         $xpath = new DOMXpath($doc);
         
-        $ts = $xpath->query("//table[@id='converter_table']");
+        $ts = $xpath->query("//td[@id='content_section']");
         
-        $elements = $xpath->query("//table/table/tbody", $ts->item(0));
+        $elements = $xpath->query("table/tr/td/pre", $ts->item(0));
         
         print_r($elements->item(0));