Getting the values in each node in a xml file into a list

Dec 11 2017 12:30 AM
<SubTexture name="explosion0000.png" x="180" y="474" width="24" height="25"/>
<SubTexture name="explosion0001.png" x="422" y="609" width="30" height="30"/>
<SubTexture name="explosion0002.png" x="395" y="981" width="34" height="34"/>
<SubTexture name="explosion0003.png" x="354" y="981" width="39" height="39"/>
 
I need to get ["explosion000.png, "180", "474", "24", "25"] and the rest of the data too in a similar manner into a list. Each group will be a sublist.
 
How do I do that? Can someone help?

Answers (1)