Yemen's warring parties exchanged dozens of prisoners captured in fighting for third city Taez on Saturday following mediation by local tribes.