RE: The semantics of an XML document is …

From
Roger L Costello <>
To
"" <>
Date
2022-01-09T14:05:50Z
ID
<>
Thread
RE: The semantics of an XML document is …
Hi Folks,

I have often heard (on this list) that:

	"XML is just syntax"

Do you agree that XML is just syntax?

If so, then this XML document:

<airplane-flight>
    <duration units="hours">1</duration>
    <speed units="kilometers-per-hour">500</speed>
</airplane-flight>

has no meaning (semantics). It is just a linear sequence of characters.

Do you agree with that? 

Some applications (i.e., XML parsers) interpret certain characters (< > = ") as having significance (meaning) and from that interpretation they construct a parse tree. 

Do you agree with that?

The identifiers (airplane-flight, duration, units, speed) in the parse tree have no meaning. Applications may be coded to interpret the identifiers to mean something. 

So far, so good?

Of course, an application doesn't just I interpret the identifiers as having a meaning, it does something with the identifiers. It does a computation on them. 

Agree?

Conclusion: The meaning assigned to the XML document by the application is the result of the application's computation. 

TaDa! You must agree with my conclusion if you agreed with the preceding statements.

For example, an application performs this computation: 

duration * speed

resulting in 500.

The semantics assigned to the XML document by the application is:

500

To my way of thinking, what I have laid out is a logical argument. Where is my argument flawed?

/Roger