Move XML response parser into own class.