Index: trunk/extensions/ExternalData/ED_Utils.php |
— | — | @@ -207,6 +207,10 @@ |
208 | 208 | global $edgXMLValues; |
209 | 209 | $edgXMLValues = array(); |
210 | 210 | |
| 211 | + // Remove comments from XML - for some reason, xml_parse() |
| 212 | + // can't handle them. |
| 213 | + $xml = preg_replace( '/<!--.*?-->/', '', $xml ); |
| 214 | + |
211 | 215 | $xml_parser = xml_parser_create(); |
212 | 216 | xml_set_element_handler( $xml_parser, array( 'EDUtils', 'startElement' ), array( 'EDUtils', 'endElement' ) ); |
213 | 217 | xml_set_character_data_handler( $xml_parser, array( 'EDUtils', 'getContent' ) ); |