text: i am trying to connect to a xml file using jsp. i need some code! anyone can help me out here?   frank,  i will assume you want to read an xml file avaialble at a url (which can be file://...) and that you want to extract information from the xml file. i can recommend the dom4j library (http://www.dom4j.org/). with dom4j you can simply write:  saxreader reader = new saxreader(); document document = reader.read(url);  you then have a document object that represents your xml document. you can navigate that object using the dom4j api.  i hope this helps,  alex --  blog (xml, web apps, open source): http://www.orbeon.com/blog/