File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 61611
    
  67

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


[Asking smart questions] [Bear's FrontMan] [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.

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://aspose.com/file-tools
 
subject: Access xml from servlet