JQuery ajax call to sharepoint 2007 lists.asmx (special character in answer)

JQuery ajax call to sharepoint 2007 lists.asmx (special character in answer)

Hello,

I've got a really strange problem into a plugin I'm trying to update from JQuery 1.6 to 1.9.1.

I have a function that call a SharePoint 2007 asmx.

This asmx is returning some xml in soap format.

Once I have the answer, I'm using find function to get value from the soap.

It was perfectly working, but since I've upgraded to 1.9.1, I'm getting some special characters in my answer. This cause the xml to be not parsable.

Do you have any idea on how I can make the answer not containing these characters?


Here is an example of what I'm getting. I'm sure you'll see what I want to remove


  1. <?xml version=\"1.0\" encoding=\"utf-8\"?><soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">

    <soap:Body>

    <GetListItemsResponse xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\">

    <GetListItemsResult>

    <listitems xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882' xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'\r\n='' xmlns:rs='urn:schemas-microsoft-com:rowset'\r\n='' xmlns:z='#RowsetSchema'>

    \r\n<rs:data ItemCount=\"0\">\r\n</rs:data>\r\n

    </listitems>

    </GetListItemsResult>

    </GetListItemsResponse>

    </soap:Body>

    </soap:Envelope>

Thanks a lot