[Home] [By Thread] [By Date] [Recent Entries]

  • From: Peter Flynn <peter@s...>
  • To: xml-dev@l...
  • Date: Wed, 29 Mar 2023 15:36:30 +0100

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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member