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?B?UkU6IFRoZSBzZW1hbnRpY3Mgb2YgYW4gWE1MIGRvY3VtZW50IGlzIOKApg==?=

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


[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