added flat xml parser