i have one xml fine. then i have to read all the tag values say Java agarwal 200 Xml saxmann 300 i can read the tag values like this File file = new File("dom.xml"); try { DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(file); NodeList nodes = doc.getElementsByTagName"book"); for (int i = 0; i < nodes.getLength(); i++) ...