how to use more efficiently SWXMLHash and how to set the class that will receive the data properly?
问题 I'm building a project for a train schedule app, and I'm using an API that returns an XML file,to manipulate the data i'm using the library called SWXMLHash. I need to extract the name of the departure station with its destinations and departure times. I created a class to store all these data, but I need to improve it because I'm having trouble extracting the destinations and departure times. I was able to loop over the xml file and get the names of the departure stations. Here is my class :