how to read my data in XML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mc Johnson
    New Member
    • Sep 2008
    • 7

    how to read my data in XML?

    - <math>
    - <module assignment="1" questionno.="0" >
    <question>sd</question>
    <choice1>1</choice1>
    <choice2>2</choice2>
    <choice3>3</choice3>
    <choice4>4</choice4>
    <correctchoice> Choice 1</correctchoice>
    </module>
    - <module assignment="1" questionno.="1" >
    <question>cvb </question>
    <choice1>1</choice1>
    <choice2>2</choice2>
    <choice3>3</choice3>
    <choice4>4</choice4>
    <correctchoice> Choice 2</correctchoice>
    </module>
    - <module assignment="1" questionno.="2" >
    <question>cxb c</question>
    <choice1>1</choice1>
    <choice2>1</choice2>
    <choice3>1</choice3>
    <choice4>1</choice4>
    <correctchoice> Choice 3</correctchoice>
    </module>
    - <module assignment="1" questionno.="3" >
    <question>asdas </question>
    <choice1>1</choice1>
    <choice2>11</choice2>
    <choice3>11</choice3>
    <choice4>11</choice4>
    <correctchoice> Choice 4</correctchoice>
    </module>
    - <module assignment="1" questionno.="4" >
    <question>sadas d</question>
    <choice1>1</choice1>
    <choice2>222</choice2>
    <choice3>333</choice3>
    <choice4>111</choice4>
    <correctchoice> Choice 2</correctchoice>
    </module>
    </math>

    need help here.

    how to read them one by one and display in label.
    <question> in question label.
    <choice1> in choice1 label
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    see this thread

    regards

    Comment

    Working...