fix NoEmit for xml serialization