You could work from the top of the XML down to the comments node and then loop through the child nodes of the comments node.
With a data structure similar to:
<level> <name>Matthias</name> <age>23</age> <gender>Male</gender> </level> ... I am trying to present the name, age and character gender to the user by extracting the data in to Python for data validation, processing and output.
How do I extract only the players name from these XML data in Python?
No comments:
Post a Comment