im sorry, the ampersands are not alone, it is '&' when its in the link and '"' when it's in the text. and i tried using htmlentities but it doesnt work.
in fact this is my code (where $filename is reuterspoliticsnews.xml for the '&' thing and bbcme.xml for the '"' thing, one of them attached here, and the other in the nextthread, just change the extension from .txt to .xml):
$data = implode("",file($filename));
$parser = xml_parser_create();
xml_parser_set_option($parser,XML_OPTION_CASE_FOLD
ING,0);
xml_parser_set_option($parser,XML_OPTION_SKIP_WHIT
E,1);
xml_parse_into_struct($parser,$data,$values,$tags)
;
_parser_free($parser);
i really appreciate the help, its for a project i have due in 2 days
Ayah