
Ways (which is the most returned link by Google)Īttention to the difference between those 2 xml files, To get more details, you should read " JSON: The Fat-Free Alternative to XML" Why did I write thisĪnd after I was googling, I got many ways to deal with this, but xml2json is one of the best

Performs much better than corresponding DOM calls required for XML processing. JSON comes with a native language-compliant data structure, with which it In this space, you probably need to convert an existing XML document into a It sounds good if you can access node in xml-document orĪttributes, child nodes list of xml-node as well as access properties of an NextSibling etc, then JSON is there for you.

Such as getElementsByTagName, hasChildNodes, or firstChild, lastChild and

Many methods of xml-node to get attribute or access child-nodes Xml-document, and you would be tired of many In javascript world, if you had to work with
