Skip to content

Infoset xsi:type attribute option for simple types #3

@mbeckerle

Description

@mbeckerle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions