Added proper dialog xml parser.