Post

2 followers Follow
0
Avatar

How I can parse an xml response from API?

I am using API methods to receive response in XML for customers and products. What is the best way to parse an xml response and display in html?

Thank you

Haresh Chaudhari

Please sign in to leave a comment.

1 comment

0
Avatar

Hi, as far as I know, you should use either jquery or any server side language to parse your xml and display that on html format. If you want to use jquery, you can use XMLHttpRequest and DOMParser for this.

Look into this sample code which might help you for sure. read an xml file with jquery,I am sure this help you. Let me know if you want any code sample because I know I have some sample with me which read response from unleashed API. I would be happy to share with you.

Thank you

Kelly

Kelly John 0 votes
Comment actions Permalink