I want to use data from a web service in android studio.
My android application is ready to take JSON data, I tried to link it with the web service but it gives XML data and I do not knowhow to use it.
After trying to make it gives data in JSON, JSON data is capsulated in this line: <string xmlns="[login to view URL]">
"the JSON appears after pressing on the first line"
I need a solution by either to use the JSON data that is inside the XML,
or by changing the java code to accept XML data easily,
or if you know how to make it appears as ONLY JSON!
and if you have any other suggestions
This XML file does not appear to have any style information associated with it. The document tree is shown below.
27 freelancere byder i gennemsnit $37 på dette job
Hi, I am having 5+years of experience in android application development. Also, expertise in Android Studio, Java, Web services API's, Back-end & graphic design. Thanks
Hi, I am having 6+years of experience in android application development. Also, expertise in Android Studio, Java, Web services API's, Back-end & graphic design. Thanks
مرحبا As I see you want change the code to accept Xml from webservice ! Do you want anything else or you prefer to change the xml to json then deal with json ? Contact me for more details Ahmed D. Regards
Dear Sir, I have read the details,we can either change the web API into JSON format and parse it in app or parse XML data in [login to view URL] is preferred over XML because its simplicity and array support
I propose a decent solution which would definitely work for you. Parsing XML inside the java based app will be ideal since you told your web service is returning XML format data. Ping me if you need help further.