Originally posted by Balaji Loganathan: Welcome to Javaranch Mike. You may need some dom/sax tutorials first.Some good ones were http://www-128.ibm.com/developerworks/views/xml/libraryview.jsp?type_by=Tutorials , http://www.w3schools.com etc., Also if you just want to parse the xml and display it in html form, then try to learn xslt as well. (w3schools got good tutorial on xslt).
Originally posted by Rajagopal Manohar: Try this it will work Node n = doc.getDocumentElement();
NodeList nl = n.getChildNodes();
System.out.println(nl.item(i).getNodeName()+" : "+nl.item(i).getFirstChild().getNodeValue());
} The text under each element is a child node and not a sibling also the getNodeValue of an Element returns Null by defination not the text it contains. IMO DOM is too complex try JDOM it will make life simple. Regards, Rajagopal