江湖急救:典型分页问题
我现在在做一个在线考试系统,考试题目从数据库提取后生成XML文件但不知道如何进行分页,网上baidu,google了好长时间都没找到
只找到了一种题型的分页方法,但四种题型就不知道怎么做了
请各位高人帮忙解决一下
<test>
<danxuan>
<DanX_Id>6</DanX_Id>
<DanX_Question>单选1</DanX_Question>
<DanX_Choice1>g</DanX_Choice1>
<DanX_Choice2>g</DanX_Choice2>
<DanX_Choice3>g</DanX_Choice3>
<DanX_Choice4>gg</DanX_Choice4>
<DanX_Choice5>g</DanX_Choice5>
<DanX_Answer>g</DanX_Answer>
<DanX_Score>55</DanX_Score>
<DanX_ChoosedMark>false</DanX_ChoosedMark>
</danxuan>
<danxuan>
<DanX_Id>7</DanX_Id>
<DanX_Question>单选2</DanX_Question>
<DanX_Choice1>fgfd</DanX_Choice1>
<DanX_Choice2>gdg</DanX_Choice2>
<DanX_Choice3>gddg</DanX_Choice3>
<DanX_Choice4>gdg</DanX_Choice4>
<DanX_Choice5>gdg</DanX_Choice5>
<DanX_Answer>dgdfg</DanX_Answer>
<DanX_Score>22</DanX_Score>
<DanX_ChoosedMark>false</DanX_ChoosedMark>
</danxuan>
<danxuan>
<DanX_Id>9</DanX_Id>
<DanX_Question>单选3</DanX_Question>
<DanX_Choice1>dgdg</DanX_Choice1>
<DanX_Choice2>fff</DanX_Choice2>
<DanX_Choice3>fff</DanX_Choice3>
<DanX_Choice4>fff</DanX_Choice4>
<DanX_Choice5>fff</DanX_Choice5>
<DanX_Answer>ff</DanX_Answer>
<DanX_Score>99</DanX_Score>
<DanX_ChoosedMark>false</DanX_ChoosedMark>
</danxuan>
<danxuan>
<DanX_Id>14</DanX_Id>
<DanX_Question>单选4</DanX_Question>
<DanX_Choice1>df</DanX_Choice1>
<DanX_Choice2>dff</DanX_Choice2>
<DanX_Choice3>df</DanX_Choice3>
<DanX_Choice4>fdf</DanX_Choice4>
<DanX_Choice5>fdf</DanX_Choice5>
<DanX_Answer>77</DanX_Answer>
<DanX_Score>99</DanX_Score>
<DanX_ChoosedMark>false</DanX_ChoosedMark>
</danxuan>
<danxuan>
<DanX_Id>15</DanX_Id>
<DanX_Question>单选5</DanX_Question>
<DanX_Choice1>f</DanX_Choice1>
<DanX_Choice2>ff</DanX_Choice2>
<DanX_Choice3>ff</DanX_Choice3>
<DanX_Choice4>f</DanX_Choice4>
<DanX_Choice5>f</DanX_Choice5>
<DanX_Answer>g09</DanX_Answer>
<DanX_Score>9</DanX_Score>
<DanX_ChoosedMark>false</DanX_ChoosedMark>
</danxuan>
<danxuan>
<DanX_Id>17</DanX_Id>
<DanX_Question>单选6</DanX_Question>
<DanX_Choice1>f</DanX_Choice1>
<DanX_Choice2>ff</DanX_Choice2>
<DanX_Choice3>f</DanX_Choice3>
<DanX_Choice4>f</DanX_Choice4>
<DanX_Choice5>f</DanX_Choice5>
<DanX_Answer>f</DanX_Answer>
<DanX_Score>6</DanX_Score>
<DanX_ChoosedMark>false</DanX_ChoosedMark>
</danxuan>
<danxuan>
<DanX_Id>18</DanX_Id>
<DanX_Question>单选7</DanX_Question>
<DanX_Choice1>s</DanX_Choice1>
<DanX_Choice2>s</DanX_Choice2>
<DanX_Choice3>ss</DanX_Choice3>
<DanX_Choice4>s</DanX_Choice4>
<DanX_Choice5>s</DanX_Choice5>
<DanX_Answer>s</DanX_Answer>
<DanX_Score>55</DanX_Score>
</danxuan>
<danxuan>
<DanX_Id>19</DanX_Id>
<DanX_Question>单选8</DanX_Question>
<DanX_Choice1>d</DanX_Choice1>
<DanX_Choice2>d</DanX_Choice2>
<DanX_Choice3>d</DanX_Choice3>
<DanX_Choice4>d</DanX_Choice4>
<DanX_Choice5>dd</DanX_Choice5>
<DanX_Answer>d8</DanX_Answer>
<DanX_Score>8</DanX_Score>
</danxuan>
<danxuan>
<DanX_Id>20</DanX_Id>
<DanX_Question>单选9</DanX_Question>
<DanX_Choice1>dfd</DanX_Choice1>
<DanX_Choice2>dfd</DanX_Choice2>
<DanX_Choice3>dfdf</DanX_Choice3>
<DanX_Choice4 />
<DanX_Choice5 />
<DanX_Answer />
<DanX_Score>0</DanX_Score>
</danxuan>
<danxuan>
<DanX_Id>21</DanX_Id>
<DanX_Question>单选10</DanX_Question>
<DanX_Choice1>dfd</DanX_Choice1>
<DanX_Choice2>dfd</DanX_Choice2>
<DanX_Choice3>dfdf</DanX_Choice3>
<DanX_Choice4 />
<DanX_Choice4 />
<DanX_Choice5 />
<DanX_Answer />
<DanX_Score>0</DanX_Score>
</danxuan>
<duoxuan>
<DuoX_Id>1</DuoX_Id>
<DuoX_Question>多选1</DuoX_Question>
<DuoX_Choice1>ll</DuoX_Choice1>
<DuoX_Choice2>ll</DuoX_Choice2>
<DuoX_Choice3>l</DuoX_Choice3>
<DuoX_Choice4>l</DuoX_Choice4>
<DuoX_Answer>ee</DuoX_Answer>
<DuoX_Score>33</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>4</DuoX_Id>
<DuoX_Question>多选2</DuoX_Question>
<DuoX_Choice1>dd</DuoX_Choice1>
<DuoX_Choice2>dd</DuoX_Choice2>
<DuoX_Choice3>dd</DuoX_Choice3>
<DuoX_Choice4>dd</DuoX_Choice4>
<DuoX_Choice5>dd</DuoX_Choice5>
<DuoX_Answer>dddd</DuoX_Answer>
<DuoX_Score>66</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>5</DuoX_Id>
<DuoX_Question>多选3</DuoX_Question>
<DuoX_Choice1>dfs</DuoX_Choice1>
<DuoX_Choice2>fdsfs</DuoX_Choice2>
<DuoX_Choice3>fsdfsdfsf</DuoX_Choice3>
<DuoX_Choice4>fs</DuoX_Choice4>
<DuoX_Choice5>f</DuoX_Choice5>
<DuoX_Answer>99</DuoX_Answer>
<DuoX_Score>99</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>6</DuoX_Id>
<DuoX_Question>多选4</DuoX_Question>
<DuoX_Choice1>yy</DuoX_Choice1>
<DuoX_Choice2>yyy</DuoX_Choice2>
<DuoX_Choice3>yy</DuoX_Choice3>
<DuoX_Choice4>yy</DuoX_Choice4>
<DuoX_Choice5>yy</DuoX_Choice5>
<DuoX_Answer>77</DuoX_Answer>
<DuoX_Score>77</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>7</DuoX_Id>
<DuoX_Question>多选5</DuoX_Question>
<DuoX_Choice1>gg</DuoX_Choice1>
<DuoX_Choice2>ggg</DuoX_Choice2>
<DuoX_Choice3>gg</DuoX_Choice3>
<DuoX_Choice4>gg</DuoX_Choice4>
<DuoX_Choice5>gg</DuoX_Choice5>
<DuoX_Answer>gg</DuoX_Answer>
<DuoX_Score>55</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>8</DuoX_Id>
<DuoX_Question>多选6</DuoX_Question>
<DuoX_Choice1>ff</DuoX_Choice1>
<DuoX_Choice2>ff</DuoX_Choice2>
<DuoX_Choice3>ff</DuoX_Choice3>
<DuoX_Choice4>f</DuoX_Choice4>
<DuoX_Choice5>f</DuoX_Choice5>
<DuoX_Answer>r</DuoX_Answer>
<DuoX_Score>33</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>9</DuoX_Id>
<DuoX_Question>多选7</DuoX_Question>
<DuoX_Choice1>df</DuoX_Choice1>
<DuoX_Choice2>df</DuoX_Choice2>
<DuoX_Choice3>fdf</DuoX_Choice3>
<DuoX_Choice4>fdf</DuoX_Choice4>
<DuoX_Choice5>dfdf</DuoX_Choice5>
<DuoX_Answer>fdf</DuoX_Answer>
<DuoX_Score>77</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>10</DuoX_Id>
<DuoX_Question>多选8</DuoX_Question>
<DuoX_Choice1>df</DuoX_Choice1>
<DuoX_Choice2>dfdf</DuoX_Choice2>
<DuoX_Choice3>fsfsf</DuoX_Choice3>
<DuoX_Choice4>fsfsf</DuoX_Choice4>
<DuoX_Choice5>fsfs</DuoX_Choice5>
<DuoX_Answer>88</DuoX_Answer>
<DuoX_Score>99</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>11</DuoX_Id>
<DuoX_Question>多选9</DuoX_Question>
<DuoX_Choice1 />
<DuoX_Choice2 />
<DuoX_Choice3 />
<DuoX_Choice4 />
<DuoX_Choice5 />
<DuoX_Answer />
<DuoX_Score>0</DuoX_Score>
</duoxuan>
<duoxuan>
<DuoX_Id>12</DuoX_Id>
<DuoX_Question>多选10</DuoX_Question>
<DuoX_Choice1>null</DuoX_Choice1>
<DuoX_Choice2 />
<DuoX_Choice3 />
<DuoX_Choice4 />
<DuoX_Choice5 />
<DuoX_Answer />
<DuoX_Score>0</DuoX_Score>
</duoxuan>
<panduan>
<PD_Id>1</PD_Id>
<PD_Question>判断1</PD_Question>
<PD_Answer>false</PD_Answer>
<PD_Score>1121</PD_Score>
</panduan>
<panduan>
<PD_Id>2</PD_Id>
<PD_Question>判断2</PD_Question>
<PD_Answer>true</PD_Answer>
<PD_Score>1451</PD_Score>
</panduan>
<panduan>
<PD_Id>3</PD_Id>
<PD_Question>判断3</PD_Question>
<PD_Answer>true</PD_Answer>
<PD_Score>12</PD_Score>
</panduan>
<panduan>
<PD_Id>4</PD_Id>
<PD_Question>判断4</PD_Question>
<PD_Answer>false</PD_Answer>
<PD_Score>454</PD_Score>
</panduan>
<panduan>
<PD_Id>5</PD_Id>
<PD_Question>判断5</PD_Question>
<PD_Answer>false</PD_Answer>
<PD_Score>32</PD_Score>
</panduan>
<panduan>
<PD_Id>6</PD_Id>
<PD_Question>判断6</PD_Question>
<PD_Answer>false</PD_Answer>
<PD_Score>96</PD_Score>
</panduan>
<panduan>
<PD_Id>7</PD_Id>
<PD_Question>判断7</PD_Question>
<PD_Answer>true</PD_Answer>
<PD_Score>100</PD_Score>
</panduan>
<panduan>
<PD_Id>8</PD_Id>
<PD_Question>判断8</PD_Question>
<PD_Answer>false</PD_Answer>
<PD_Score>22</PD_Score>
</panduan>
<panduan>
<PD_Id>9</PD_Id>
<PD_Question>判断9</PD_Question>
<PD_Answer>true</PD_Answer>
<PD_Score>33</PD_Score>
</panduan>
<panduan>
<PD_Id>10</PD_Id>
<PD_Question>判断10</PD_Question>
<PD_Answer>false</PD_Answer>
<PD_Score>21</PD_Score>
</panduan>
<tiankong>
<TK_Id>1</TK_Id>
<TK_Question>填空1</TK_Question>
<TK_Answer>ttttuuuu</TK_Answer>
<TK_Score>99</TK_Score>
</tiankong>
<tiankong>
<TK_Id>4</TK_Id>
<TK_Question>填空2</TK_Question>
<TK_Answer>dfdf</TK_Answer>
<TK_Score>22</TK_Score>
</tiankong>
<tiankong>
<TK_Id>5</TK_Id>
<TK_Question>填空3</TK_Question>
<TK_Answer>dffdd</TK_Answer>
<TK_Score>2345</TK_Score>
</tiankong>
<tiankong>
<TK_Id>6</TK_Id>
<TK_Question>填空4</TK_Question>
<TK_Answer>dgd</TK_Answer>
<TK_Score>67</TK_Score>
</tiankong>
<tiankong>
<TK_Id>7</TK_Id>
<TK_Question>填空5</TK_Question>
<TK_Answer />
<TK_Score>0</TK_Score>
</tiankong>
</test>