Re: How to read and parse a remote XML file with Java



Thomas Armstrong wrote:
And what if someone had a link to a web page that
had simple, but not *very* simple, code to do that?
Should they simply not reply?

<dws>Would you like us to code it for you?</dws>

I'm not a Java programmer, and I only need a "hello world" sample in
order to make a comparative table between Perl, PHP, Python and Java
with Web Services.


Try starting here; this will tell you how to go from a URL to an open file for reading:

http://java.sun.com/docs/books/tutorial/networking/urls/index.html

I'm not having a lot of luck finding "simple" programming examples of XML parsers. Here's one that at least includes a lot of examples:

http://www.totheriver.com/learn/xml/xmltutorial.html

Try doing some Google searches for "java xml parser tutorial" you might find some that are better for you. Good luck.
.