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

Re: how to best integrate XML in a programming language

  • To: Burak Emir <Burak.Emir@e...>
  • Subject: Re: how to best integrate XML in a programming language
  • From: George Richard Russell <george.russell@c...>
  • Date: Wed, 18 Feb 2004 11:36:32 +0000
  • Cc: xml-dev@l...
  • In-reply-to: <40333A3F.3090201@e...>
  • Organization: Department of Computer and Information Sciences, Universityof Strathclyde
  • References: <40333A3F.3090201@e...>
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007

best untyped language
OK, up front I'll say a dual view of data is imo better than a single 
view. The two views are labelled tree i.e. DOM like and Regular data 
structures (i.e. records, collections, objects, scalar types).

They neat thing is being able to choose within the same program, over 
the same data, which view is most convenient for the task at hand.
The assertion of the regular structure over the tree needs a dynamic 
check, but the use of the regular strcture in programs can itself be 
statically checked.

There are couple of papers outlining what a language could look like, 
mostly from a largely untyped / dynamically typed aspect.

Hybrid Applications over XML - Integrating the Declarative and 
Navigational Approaches - 
http://www.cis.strath.ac.uk/~david/papers/widm2002.pdf

Projector - a partially typed language for querying XML
http://www.cis.strath.ac.uk/~david/papers/planx2002.pdf

> <point>
> No matter whether you are more concerned about documents or data, 
> writing code in non-XML syntax makes life easier.
> </point>
> 
> I believe it is better to write
> out.println( <html>... </html>.serialize() );

Please, an implicit conversion to String!

> because a compiler can check many of the well-formedness constraints. It 
> is thus less likely that a typo will break your neck at runtime. Plus a 
> very sophisticated type system could even check whether your value 
> conforms to some type specified in DTD, Relax NG or Schema - this is 
> something like "built-in data binding".

Note that some data binding frameworks provide a dual view of data i.e. 
XMLBeans provides an Infoset and a typed, object representation.

> - Which type does the XML literal have ?
>    (This demands a class library that represents XML, which is ideally 
> not as bloated as DOM)

Labelled tree at least, possibly a more specific type assertion made at 
runtime or statically as needed.

Scala looks an interesting language.

George Russell





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.