wood burning stoves 2.0*
The moose likes Servlets and the fly likes XML as servlet inputs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "XML as servlet inputs" Watch "XML as servlet inputs" New topic
Author

XML as servlet inputs

Chhuckie Vasudevan
Greenhorn

Joined: Sep 24, 2001
Posts: 1
Hello,
In my project, there is a need to send in the results of a computation on a XML file to a servlet and do some processing in the servlet. Could somebody please tell me how I could read the XML file in a servlet. As I am new to servlets, it would be great if somebody could give me an example of how to read XML documents into a servlet, or point me to a link
Thanks
Chhuckie
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
The Apache SOAP project does lots of XML manipulation inside servlets. It is really pretty simple. Basically you just get an getInputStream on the HttpRequest and feed that stream to a XML parser.
see xml.apache.org for LOTS of xml related stuff including SOAP
Bill
------------------
author of:
 
Don't get me started about those stupid light bulbs.
 
subject: XML as servlet inputs
 
Similar Threads
Why can't servlets access a file with a relative path
Security and threads about Xml in servlet
reading from XML
My Servlet has no permission to upload files...please help
Using Hashtable to store an xml document for further reference