sorted all the xml info into an array