This is my code snippet:
$feed=file_get_contents($feed);
$feed=simplexml_load_string($feed);
I have tried all the solutions here but nothing works.It actually works for one feed and not the other.If another solution is used the other one works but the older one fails.Please help me fix this.It’s irritating.I need a universal solution.
Try this:
Actually each hex(0x) entry in the error corresponds to a symbol use str_replace to replace the characters and then try simplexml_load_string.Use this link for conversion purpose.I am surprised not to see this easy method else where in this forum.Hope this helps you.