parsed the xml. made two factories for maincontroller - httpStats and parseXML