added loop for parsing through the xml

added data class for holding the xml’s data