Document Object Model - Example
root = doc.getDocumentElement();
System.out.println(root.getTagName());
//get first child element of the root
docElem = (Node) root.getFirstChild();
System.out.println(docElem.getTagName());
System.out.println(docElem.getNodeType());
docElem1 = (Text) docElem.getFirstChild();
System.out.println(docElem1.getNodeValue());