Important Update: Community URLs redirect issues are partially resolved. Learn More. .
2022-06-29 07:55 AM
Hello,
I need to use the web services api to search a record. The problem is in the response. I don't know why but the response has html entites instead of "<" and ">".
I need to decode these html entities because i have to convert the xml to json then use it in my Javascript datafeed.
I tried everything (replace function...)
Could you please help me ?
Thank you,
Regards
2022-06-29 09:07 AM
@yassinederkaoui you should be able to use the following:
function xmlStringToXmlDoc(xml){
var p = new xmldom.DOMParser;
return p.parseFromString(xml);
}
Advisory Consultant
2022-06-29 09:07 AM
@yassinederkaoui you should be able to use the following:
function xmlStringToXmlDoc(xml){
var p = new xmldom.DOMParser;
return p.parseFromString(xml);
}
Advisory Consultant
2022-06-29 10:31 AM - edited 2022-06-29 10:32 AM
Thank you so much, it works !