V
vish
Hello,
i have a response from a API which returns to me different attributes.
i need to write a js code to convert that response into an xml file,
can someone please help me to get started..? i am new to js
the response is like below.
username=ghijkl&token=l-2-AAABIL-
AKomsEyC_JbEe57iIkphI7f99_iWipH5aRc7bQMaIUcEFhBVL4lLuXvpzpGL7vl6xBzTsQCEUPZja1V2KpSr_XS2e_q6pz2gfCzA.&token_secret=xxc3bucsmp3ujbjykcf1ce&expires_in=86399
need to convert above into an xml
like below
<?xml version="1.0" encoding="UTF-8"?>
<root>
<z0>ghijkl</z0>
<z1>l-2-AAABIL-
AKomsEyC_JbEe57iIkphI7f99_iWipH5aRc7bQMaIUcEFhBVL4lLuXvpzpGL7vl6xBzTsQCEUPZja1V2KpSr_XS2e_q6pz2gfCzA.</
z1>
<z2>bucsfdf3mp3ujbkcf1ce</z2>
<z3>86399</z3>
</root>
any help is appreciated.
thanks in advance
vish
i have a response from a API which returns to me different attributes.
i need to write a js code to convert that response into an xml file,
can someone please help me to get started..? i am new to js
the response is like below.
username=ghijkl&token=l-2-AAABIL-
AKomsEyC_JbEe57iIkphI7f99_iWipH5aRc7bQMaIUcEFhBVL4lLuXvpzpGL7vl6xBzTsQCEUPZja1V2KpSr_XS2e_q6pz2gfCzA.&token_secret=xxc3bucsmp3ujbjykcf1ce&expires_in=86399
need to convert above into an xml
like below
<?xml version="1.0" encoding="UTF-8"?>
<root>
<z0>ghijkl</z0>
<z1>l-2-AAABIL-
AKomsEyC_JbEe57iIkphI7f99_iWipH5aRc7bQMaIUcEFhBVL4lLuXvpzpGL7vl6xBzTsQCEUPZja1V2KpSr_XS2e_q6pz2gfCzA.</
z1>
<z2>bucsfdf3mp3ujbkcf1ce</z2>
<z3>86399</z3>
</root>
any help is appreciated.
thanks in advance
vish