The logic of the program is written inside the scriptlet. Now inside the scriptlet firstly we will define a factory API which allows our application to obtain a Java XML parser. DocumentBuilderFactory defines a factory API. Now create a DocumentBuilder object to parse an org.w3c.dom.Document from XML. Save the xml file at bin file of C:\apache-tomat-5.5.23\bin\.
Read for more information,http://www.roseindia.net/jsp/jdo-mparsing-xml.shtml