-
Notifications
You must be signed in to change notification settings - Fork 7
Description
To enable type-sensitive comparison logic, the XML infoset should be created with xsi:type="...." attributes for simple types.
For date/time/dateTime there are plenty of cases where actual and expected infosets can be expressed in ways where the values are equivalent if you know the type. E.g, 2018-12-30Z vs. 2018-12-30+00:00 are equivalent so long as you know the value is a date.
Similarly, tolerant comparison logic around fractional seconds in times may be needed.
For floating point (xs:float and xs:double), equivalence of the abstract values may be implemented, as there are multiple base 10 representations that map to the same base 2 IEEE floating point values.
For decimal, due to fractional parts and base 10 vs. base 2 there may also be issues - TBD.
Perhaps the easiest thing is just put it in for all simple types.