? .DS_Store ? taxonomy_xml-entity_trimming-413328-20090331.patch ? samples/.DS_Store ? samples/taxonomy.xsd Index: xml_format.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_xml/Attic/xml_format.inc,v retrieving revision 1.1.4.8 diff -u -p -r1.1.4.8 xml_format.inc --- xml_format.inc 5 Feb 2009 01:44:00 -0000 1.1.4.8 +++ xml_format.inc 30 Mar 2009 13:43:27 -0000 @@ -88,7 +88,8 @@ function taxonomy_xml_element_start($par * Call-back function used by the XML parser. */ function taxonomy_xml_element_end($parser, $name) { - global $_tx_element; + global $_tx_element, $_tx_terms, $_tx_term, $_tx_tag; + @$_tx_terms[$_tx_term][$_tx_tag] = trim($_tx_terms[$_tx_term][$_tx_tag]); switch ($name) { case 'vocabulary': @@ -111,11 +112,11 @@ function taxonomy_xml_element_data($pars } } else { - @$_tx_terms[$_tx_term][$_tx_tag] .= trim($data); + @$_tx_terms[$_tx_term][$_tx_tag] .= $data; } break; default: - $_tx_vocabulary[$_tx_tag] = isset($_tx_vocabulary[$_tx_tag]) ? $_tx_vocabulary[$_tx_tag] .= trim($data) : trim($data); + $_tx_vocabulary[$_tx_tag] = isset($_tx_vocabulary[$_tx_tag]) ? $_tx_vocabulary[$_tx_tag] .= $data : $data; // (PHP strict is boring for lazy coders.) } }