I have an app in which I have to send String request to server and server is sending me response in xml format.How can I read this response ans save it in String variable and convert into json.
server is reponding reponse like:-
<Response>
<st-code>0</st-code>
<st-desc>Transaction Successful</st-desc>
<st-no>XXXXXX</st-no>
<st-tno>111111</st-tno>
<st-optno>XXXXXXXXX</st-optno>