# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: contributions/modules/xml_parser/xml_parser.info
--- contributions/modules/xml_parser/xml_parser.info Base (1.1)
+++ contributions/modules/xml_parser/xml_parser.info Locally Modified (Based On 1.1)
@@ -1,6 +1,8 @@
-; $Id
-
+; $Id$
 name = XML Parser
 description = Module containing a class for parsing XML Feeds.
 package = CMS Professionals
-core = 6.x
+core = 7.x
+files[] = xml_parser.module
+
+
Index: contributions/modules/xml_parser/xml_parser.module
--- contributions/modules/xml_parser/xml_parser.module Base (1.1)
+++ contributions/modules/xml_parser/xml_parser.module Locally Modified (Based On 1.1)
@@ -1,5 +1,5 @@
 <?php
-// $Id
+// $Id$
 
 /**
  * This function receives the path to an XML document and 
@@ -13,10 +13,9 @@
  * to be parsed or FALSE if the file could not be opened.
  */
 function xml_parser_load_xml($file) {
-     
   // load xml file into string
   if ($xmlfile = fopen($file, "r")) {
-    while(!feof($xmlfile)) {
+    while (!feof($xmlfile)) {
       $str = $str . fgets($xmlfile, 4096);
     }
     fclose($xmlfile);
@@ -24,7 +23,7 @@
   }
   // otherwise report problem
   else {
-    watchdog('xml_parser', t('Could not open XML file: '.$file), array(), WATCHDOG_ERROR);
+    watchdog('xml_parser', 'Could not open XML file: %file', array('%file' => $file), WATCHDOG_ERROR);
     return FALSE;
   } 
 }
@@ -94,11 +93,11 @@
         'name' => 'document',
         'attributes' => array(),
         'children' => array(),
-        'data' => ''
+        'data' => '',
        )
     );
     if (!xml_parse($p, $str_input_xml)) {
-      trigger_error(xml_error_string(xml_get_error_code($p)) ."\n". $str_input_xml, E_USER_NOTICE);
+      trigger_error(xml_error_string(xml_get_error_code($p)) . "\n" . $str_input_xml, E_USER_NOTICE);
       xml_parser_free($p);
       return;
     }
@@ -164,7 +163,7 @@
 
   function start_handler($parser, $name, $attribs = array()) {
     $token = array();
-    $token['name'] = strtolower($name);
+    $token['name'] = drupal_strtolower($name);
     $token['attributes'] = $attribs;
     $token['data'] = '';
     $token['children'] = array();
@@ -189,7 +188,7 @@
     }
   }
   else {
-    $xml .= "<![CDATA[".$data."]]>";
+    $xml .= "<![CDATA[" . $data . "]]>";
   }
   $xml .= "</$tagname>\n";
   return $xml;
