I am getting a xml string from a server through ajax request. But it is not getting parsed through jquery-
var xml = $.parseXML("<dummy>"+xmlStr+"</dummy>");
I am getting the error -
Uncaught Error: Invalid XML: <dummy><SMSInfo><smsTo>7005056</smsTo...
I debugged further for the reason for the invalid xml, got the following error from debugging into jquery parseXML function-
This page contains the following errors:error on line 1 at column 7624: Char 0x0 out of allowed range↵Below is a rendering of the page up to the first error.
Further still I copied the xml data from the console to a new file and opened in another editor, there I could see these kind of characters -
^@Z ^@6 ^@1 ...
My usual editor (Webstorm) does not even show these characters...
I am not able to figure out on how to remove these characters...These are not the usual "<,>,&" characters(I cleaned that already)
Please somebody help!