Re: [xml-dev] Philosophy of XML datatypes (was: What is an integer? (was: Re: [xml-dev] XML Quiz))

From
Peter Flynn <>
To
Date
2023-03-29T14:36:30Z
ID
<>
Thread
Re: [xml-dev] Philosophy of XML datatypes (was: What is an integer? (was: Re: [xml-dev] XML Quiz))
On 26/03/2023 20:28, Roger L Costello wrote:
> <num>44</num>
> 
> The value of the <num> element -- 44 -- represents an integer.

No, the *value* of the <num> element *is* an integer. It's the '44' that 
*represents* an integer.

> How do we know that 44 represents an integer?

Because it has no decimal part, only a whole number.

> It is a representation of an integer.

Ceci n'est pas une pipe.

A schema may declare the element content to be something else, such as a 
string, in which case '44 would be a string, period.

Peter