Menu
Here is some code for loading an XML (XHTML, in this case) file, and validating it:
[code=php]
$x = new DOMDocument();
$x -> loadXML(file_get_contents(‘../main_roster.html’));
$x -> validate();
The problem is that this method does NOT play nicely with entity references (é, —, and so on). What method will work with such references?