I'm writting a simple script that needs to parse some HTML, I thought this would be pretty easy with the XML parser.
However the xml parser spits out "mismatched tag" everytime it hits a <br> or <img> (there must be more) tag.
I've just checked the XML spec and single tags (empty elements as it calls them) are legal XML.
Is there anyway to stop this or do I have to compile a custom PHP to get this functionality?
Thanks