wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12756
    
    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: 12756
    
    5
I usually send people to this Sun tutorial site.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Processing a raw XML file
 
Similar Threads
how to create Xml file programmatically
JDOM -- addProcessingInstruction doesn't work correctly with IE6
Append Raw xml to XStream's writer
Q for Dmitry Kirsanov : XSLT's value
how to add xml data in raw folder in my application.