You can use Stefan Goessner's jsonxml library (There is a good article that explains the tool in detail).
Use
function xml2json(xml, // xml define un documento o elemento xml
tab) // tab es usado para formato
// se omite para usar ""
// regresa una cadena JSON
function json2xml(obj, // objeto javascript
tab) // tab es usado para formato
// se omite para usar ""
// regresa una cadena XML
To add files Javascriptto projects ASPyou can check this good tutorial or just go to folder Scripts-> Add -> Existing item and select the .jsdesired file.
You can use Stefan Goessner's jsonxml library (There is a good article that explains the tool in detail).
Use
Here are some sample results .
The tool includes both ,
xml
and .json
json
xml
Note:
To add files
Javascript
to projectsASP
you can check this good tutorial or just go to folderScripts
-> Add -> Existing item and select the.js
desired file.There is always the option of doing it on foot, but why reinvent the wheel.
A quick search returns several interesting results:
Now it would be for you to check which one works best for you. Right here we could help you use one or the other depending on your needs.