I am reading an xml in php using simplexml_load_file. However while trying to load the xml it displays a list of warnings
simplexml_load_file
Warning: simplexml_loa
The XML is most probably invalid.
The problem could be the "&"
$text=preg_replace('/&(?!#?[a-z0-9]+;)/', '&', $text);
will get rid of the "&" and replace it with it's HTML code version...give it a try.