Parsing a XML from URL with no .xml extension
Parsing a XML from URL with no .xml extension
I'm learning XML
parsing with Android Studio, reading and trying the code I get from tutorials. All material I had read teach you how to get info from URL
with a /some.xml
file (with the extension .xml
) at the end.
XML
URL
/some.xml
.xml
I'm trying to parse a xml
file hosted in a URL
type http://something.com/file and I don't know what to put in the
xml
URL
String URL = "https://something.com/file";
part of the code. There is no xml
extension in the URL
.
xml
URL
What shall I do?
Greets.
1 Answer
1
Whether or not the URL has .xml at the end does not matter. As long as you know there is XML data at that URL, any code you are using should work.
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
What have you tried? Where is it failing? Post your code as a Minimal, Complete, and Verifiable example
– Erwin Bolwidt
Jun 30 at 5:23