how to store an xml tag as an array in java

后端 未结 3 1475
醉梦人生
醉梦人生 2021-01-17 08:06

in my app i am parsing an xml file. In the xml file i am having 50 tags of the same name question , now i want to store all the tag named as question as an arra

3条回答
  •  自闭症患者
    2021-01-17 08:23

    This answer seems easily adaptable to your needs. In the example the questions are stored in a map, but it is easy to change this to an ArrayList or an array.

提交回复
热议问题