The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Reading XML File using DOMParser and have problem with accessing xml

I am trying to create a Java application that would generate Multiple Choice Question. The multiple choice questions are stored in the XML file and validated with DTD or schema. The proposed idea is to create Java app with model view controller design pattern and accessing the XML file. But I am still in an initial phase and basically encountered problem here. I have managed to access almost all element of XML file but could access particular element. I hope you guys could help me out.

Currently, there are lots of flaws in the coding as it prints many number of times than it intends to. Could you please suggest? Am I in the right path to create Java application with relation to XML? Your suggestions and tips will be mostly welcomed. Cheers