aspose file tools*
The moose likes XML and Related Technologies and the fly likes Processing a raw XML file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Processing a raw XML file" Watch "Processing a raw XML file" New topic
Author

Processing a raw XML file

Ryan Day
Ranch Hand

Joined: Apr 03, 2006
Posts: 87
I am familiar with processing web services, but a web site is feeding data with just a raw XML file as a URL.

Where tools should I use to throw this data into a JSP/Servlet web app?


SCJP, SCWCD
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
The standard Java library is pretty complete. If you can get a character stream from that URL, it can be parsed into a DOM or read as SAX events. Choosing which way to go depends on what your app has to do with the data.

If you are new to XML, go work through one of the many excellent tutorials first.

Bill
Ryan Day
Ranch Hand

Joined: Apr 03, 2006
Posts: 87
Thanks Bill. Looks like there is a treasure trove on your web site. Are any of those links to tutorials you would recommend I start with?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
I usually send people to this Sun tutorial site.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Processing a raw XML file