This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Servlets and the fly likes Access xml from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Access xml from servlet" Watch "Access xml from servlet" New topic
Author

Access xml from servlet

Adam Teg
Ranch Hand

Joined: Feb 09, 2006
Posts: 36
Can anyone tell me or point me in the direction on how to access an xml file that is on the webb from my servlet. After I get the xml, I will create a file in the local directory.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56549
    
  14

Could you be more specific about "on the webb [sic]"?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Well if you want to read the xml file from java more precisely want to map xml file to java object, then you need certain parsers like dom or sax parser. You can try dom4j or digester for that.

Thanks

Naseem


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
try: http://www.jguru.com/faq/view.jsp?EID=10646


[ July 24, 2006: Message edited by: ak pillai ]

java j2ee job interview questions with answers | Learn the core concepts and the key areas
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Access xml from servlet
 
Similar Threads
importing an xml file and use xml file data
Can we pass parameters from a Javascript function to an XSL file
Error reading non servlet data from a jsp
Why can't servlets access a file with a relative path
Issue w/ accesing file from a Servlet