Small fix in xml file, changed the parser to separate method, added
contructor.