Fix up XML editing and tab ids.