jQuery in Action, 3rd edition
The moose likes Servlets and the fly likes Access xml from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Access xml from servlet" Watch "Access xml from servlet" New topic

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.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

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

[Asking smart questions] [About Bear] [Books by 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.



Asking Smart Questions FAQ - How To Put Your Code In Code Tags
ak pillai
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://aspose.com/file-tools
subject: Access xml from servlet
It's not a secret anymore!