How to read xml attribute in a xml based quiz application

iam trying a run a xml based quiz got the from net

i have problem readding a attribute node from xml file, actually i want to carry questionid variable with each question; which i have added in the xml files as node of <question >

i tyred a lot but im not able to show that with the qestions; can any one help me please