I have an XML file which I want to parse(below). I used an example on mykong to learn - http://www.mkyong.com/java/how-to-read-xml-file-in-java-dom-parser/comment-page-2/#comment-125087But I got an error "[Fatal Error] flight.xml:3:15: Open quote is expected for attribute "{1}" associated with an element type "id"."\[code\]<?xml version="1.0" encoding="utf-8"?><root xmlns:android="www.google.com"><passenger id=001><name>Tom Cruise</name></passenger><passenger id=002><name>Tom Hanks</name></passenger></root>\[/code\]I changed the print statements, but it does not work.\[code\]System.out.println("Passenger id : " + getTagValue("passenger id", eElement));System.out.println("Name : " + getTagValue("name", eElement));\[/code\]How do I edit the code in mykong to make it work for me ?Update - I made the changes as mentioned below. But, now I don't see the passenger id's and names in my output. How do I fix that ?New XML File here - \[code\]<?xml version="1.0" encoding="utf-8"?><root xmlns:android="www.google.com"><passenger id="001"><name>Tom Cruise</name></passenger><passenger id="002"><name>Tom Hanks</name></passenger></root>\[/code\]