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>
(Actually, i have truncated the file)...
(Number Attribute above is not of ID type)
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...
Note : I have got the desired result using MSXML-DOM... Actually, i am looking for a more efficient solution...
<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>
(Actually, i have truncated the file)...
(Number Attribute above is not of ID type)
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...
Note : I have got the desired result using MSXML-DOM... Actually, i am looking for a more efficient solution...