I have an API response where sizes vary. It doesn't show error on large xml data(appx. 20MB), when I try to convert the xml object into std object using. This is my code
$xml = simplexml_load_string($apiResponse);
$object = json_decode(json_encode($xml));
Error Message is:
simplexml_load_string(): Entity: line 1: parser error : internal error: Huge input lookup
I google and found this answer on stackoverflow and changed my code to
simplexml_load_string($apiResponse, 'SimpleXMLElement', LIBXML_PARSEHUGE)
But, error is still same. Anyone has got any Idea? Thank you in advance