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
Try to clean the HTML first using this function:
$html = htmlspecialchars($html);
Special chars are usually represented differently in HTML and it might be confusing for the compiler. Like & becomes &.
&