XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_RE=3A_The_semantics_of_an_XML_document_i?==?UTF-8?Q?s_=E2=80=A6?=

What is the semantic difference between that XML and the sentence:

A flight took 1 hour at a speed of 500 kph.


No semantic difference. Syntax difference only.


On Sun, 9 Jan 2022 at 14:06, Roger L Costello <costello@mitre.org> wrote:
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
--
----
Stephen D Green


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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS