implemented the method to download and parse the xml data