[xsd-users] how do I...?

Michael Coulman michael.coulman at gmail.com
Sat May 19 18:34:32 EDT 2007


On May 19, 2007, at 11:35 AM, Ray Lischner wrote:

>> (3) Define operator== for comparing books.
>
> I often wonder whether Code Synthesis should generate this operator  
> for us. Optional items would be equal if both were absent, or both  
> were present and equal. Cardinality > 1 items would be equal using  
> the equivalent logic of the std::equals algorithm. Items deriving  
> from fundamental types would be equal if the values were equal.  
> Complex types would be equal if all their members were equal.

Agree, or trivially where an id attribute is specified in the schema  
for a given element and id values are equal.

--
Mike





More information about the xsd-users mailing list