I have the following xml table :
<QuestionBank>
<Question Number="1">
<TextOfQuestion> Text of Question </TextOfQuestion>
<Answer> Text of Answer to Question 1 </Answer>
</Question>
<Question Number="2">
<TextOfQuestion> Text of Question </TextOfQuestion>
<Answer> Text of Answer to Question </Answer>
</Question>
</QuestionBank>
(And the file goes on)...
Supposing, if i have the value of the "Number" Attribute of Question Node from the user "AT RUN-TIME"... how to retrieve the Text of both the TextOfQuestion Node and Answer Node pertaining to the "Number" Attribute...
<QuestionBank>
<Question Number="1">
<TextOfQuestion> Text of Question </TextOfQuestion>
<Answer> Text of Answer to Question 1 </Answer>
</Question>
<Question Number="2">
<TextOfQuestion> Text of Question </TextOfQuestion>
<Answer> Text of Answer to Question </Answer>
</Question>
</QuestionBank>
(And the file goes on)...
Supposing, if i have the value of the "Number" Attribute of Question Node from the user "AT RUN-TIME"... how to retrieve the Text of both the TextOfQuestion Node and Answer Node pertaining to the "Number" Attribute...