2.2.5.2.1.2 <Ref> Element
When a particular object has been already serialized by a given instance of the serializer (see the following section 2.2.5.3.3 for details of serializer lifetime), the serializer SHOULD choose to output only <Ref> element (instead of <Obj> element with full object data).
Example:
-
<!-- there are 2 objects in the list - the second object is the same as the first object --> <Obj><LST> <Obj RefId="RefId-0"> <TN RefId="RefId-0"> <T>System.Drawing.Point</T> <T>System.ValueType</T> <T>System.Object</T> </TN> <ToString>{X=12,Y=34}</ToString> <Props> <B N="IsEmpty">false</B> <I32 N="X">12</I32> <I32 N="Y">34</I32> </Props> </Obj> <Ref RefId="RefId-0" /> </LST></Obj>