I have an XML document that I need to upload using PHP. I am currently using the simplexml_load_file () function, however the xml file is incorrect, and therefore I am getting a parsing error.
The XML file looks something like this:
...
</result>something1>
</else>
</else>
</resu
...
As you can see, this XML is hacked and this function throws an error trying to parse it. Also I do not need this data that is damaged. I just wanted to read everything I can and throw away the rest.
source
share