• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access xml from servlet

 
Adam Teg
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you be more specific about "on the webb [sic]"?
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
ak pillai
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try: http://www.jguru.com/faq/view.jsp?EID=10646


[ July 24, 2006: Message edited by: ak pillai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic