[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML-aware programming language?


agents programming languages
Elliotte Harold wrote:

> Daniela Florescu wrote:
>
>
>> XQuery and XSLT do have a data model that will stay at the foundation of
>> XML processing in the future. I think it is too late by now to deny 
>> that.
>
>
> This is *a* data model. It is not *the* data model. There is no one 
> XML data model, and there will not be. The XQuery/XPath 2.0 Data Model 
> will only be the foundation for XQuery and XSLT 2. Many other 
> developers will continue to profitably use other data models that 
> better meet their needs. XML interoperability is based on exchanging 
> syntax, not representations of data models.
>
I am not sure I understand your use of "data model".

Some DOM representation and a term notation a(b(c(),d())) surely have 
the same data model (i.e. a tree)?

Surely a finger pointing to the moon is not the moon itself? (i.e. even 
if you want to have object graphs, representing them as trees with 
references does not hurt) ?

Even if we see some faithful "data binding" one day (something that maps 
XML Schema to programming languages types, so that a typechecker can 
check well-typedness statically), the object instances it gives you will 
still allow you to recover the tree?

IMHO the only benefit that XML can possibly give to programming in general (and that's quite a great part of informatics & communication) goes through this model. And this is not even new! For instance, every decent Java compiler in the world represents the source as an abstract syntax tree - using objects fails miserably for modular compiler writing. For a reason.

But if your critique is about the *details* of the tree model, then we certainly agree. I think there will e.g. never be consensus about having a pointer to the parent in each node, because the data model one chooses for a programming language interferes with all (and I mean all) aspects of the programming language design.

regards,
Burak Emir

http://lamp.epfl.ch/~buraq


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.