I am editing an existing namedgroup element. I found use AddXAttribute can implement my task.
So for just creating element (have not written to model), we should use ScheduleWriteXAttribute, for existing element, we should use AddXAttribute. Is it correct ?
I found checking the return value of ScheduleWriteXAttribute has no sense. It always return SUCCESS because it just denotes schedule successfully not denotes write xattr successfully.
Thanks Jon