What is the best way to parse an xml...

User 2926449 Photo


Guest
1 post

I have an xml file with product data which I get from API as response. what is the best way to parse that xml file? Should I use server side technologies or any client side scripts? Any sample or code snippets available?
Thank you
User 122279 Photo


Senior Advisor
14,447 posts
Online Now

What about this: https://jsonformatter.org/xml-parser
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2926954 Photo


Guest
1 post

You can easily parse your xml by using DOMParser with XMLHttpRequest object. You can refer this read xml with jquery as there is code sample with an example to parse xml. Let me know if it help or I can send you small sample which you can use easily for your solution.
Thank you
John
User 2929386 Photo


Guest
5 posts

I often use this "https://jsonformatter.org/xml-parser"
User 2932062 Photo


Guest
3 posts

If you have a concert data model that is generating the XML I would take a look at XStream

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.