Hi,
I'm using an xmltextreader in .net2003 with the compact framework for a handheld app.
I have a file that can contain anywhere from 10 to 40 quesitons (sample below).
I'm using a "While reader.Read()" statement to go through the list and I'm tryig to grab an item from the file based mainly on the <QSEQUENCE> tag.
I want to say - if reader.name = "QSEQUENCE" and the qsequence value is "3" then ..
From there I want to pull and assign all the values (QID, evalid, Qtext etc..) for QSEQENCE 3 to variables and put them to use.
I cant seem to figure out the right way to do it.
Can it be done useing the xmltextreader?
Thanks
Dan
Code:
- <Question QIDELEMENT="3625">
<QID>3625</QID>
<EVALID>118</EVALID>
<QSEQUENCE>1</QSEQUENCE>
<QTEXT>Walter Brown, MD</QTEXT>
<QTYPE>MC</QTYPE>
<QANSWERSET>25</QANSWERSET>
<QPARENT>-1</QPARENT>
<QDEFAULTANS>0</QDEFAULTANS>
<QREQUIRED>False</QREQUIRED>
</Question>
- <Question QIDELEMENT="3627">
<QID>3627</QID>
<EVALID>118</EVALID>
<QSEQUENCE>3</QSEQUENCE>
<QTEXT>Liz Burton, CRNA</QTEXT>
<QTYPE>MC</QTYPE>
<QANSWERSET>25</QANSWERSET>
<QPARENT>-1</QPARENT>
<QDEFAULTANS>0</QDEFAULTANS>
<QREQUIRED>False</QREQUIRED>
</Question>