change xml object flag serialization