feat(client/diagram): export xml only if changed