Added parser class to deal with XML.