persist locked fields in xml