XML : how to separate xml information of a single tag in an xml file

I want a help to separate the xml content of a single tag and put those content to an array. This is my xml file.

      <?xml version="1.0" encoding="UTF-8" standalone="no"?>      <Question>       <word>        <Noun>How,and,pencils,boxes,are</Noun>        <Verb>containing</Verb>        <Adjective>7,all,many,8,3,each,6,4</Adjective>            <AdVerbs>in,There</AdVerbs>       </word>       <Variables>        <Y>4 boxes</Y><Z>6 pencils</Z><P>3 boxes</P><Q>8 pencils</Q>         </Variables>      </Question>    

No comments:

Post a Comment