Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlets & XML  RSS feed

 
Yogita Rakasi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem. I have a servlet through which I have to access the data from an xml document. I would like to know how to connect both the servlet and the java file together so I can access Xml data from the java File.
Thank you in advance,
Yogita Rakasi.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is the XML file? On the same system as the servlet engine, or somewhere else?
If you don't already have a XML parser package, download the JAXP package from java.sun.com
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!