Replaced xml parsing code with yaml parser.