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

Re: The privilege of XML parsing - Data types, binary XML and

  • To: xml-dev@l...
  • Subject: Re: The privilege of XML parsing - Data types, binary XML and XMLpipelines (LONG)
  • From: Sean McGrath <sean.mcgrath@p...>
  • Date: Mon, 09 Dec 2002 18:49:22 +0000

parsing data
Hi Roger,


 >I am not clear on what you are saying.  Consider this:

 ><aircraft>
 >    <elevation>12000</elevation>
 ></aircraft>

 >Suppose that I create a schema for the aircraft and elevation elements.
 > declare that the elevation element should hold an integer that is
 >restricted to a range of 0 - 20000.  Thus, the schema is defining a
 >"data model".  Are you saying that such a data model is bad, that there
 >should be no such model and it should be up to applications to interpret
 >the data?  Thus, one application may interpret 12000 as an integer,
 >another may interpret it as a string, another may interpret it as still
 >something else?

 >Isn't a data model a contract between the sender and the receiver?  If
 >we have agreed to this contract then we can effectively communicate,
 >right?

In my experience:

1. the amount of useful contract stuff that you can
enshrine in any declarative syntax is a lot less that many people
think.

2. The amount of concrete shared datatypes that can be enshrined
without getting into platform/application specific datatypes is
low.

Having said that, I am not averse to data types. I'm averse to them
being in the core where they infect everyone whether your like
it or not. I'm advocating the use of a pipelined parsing paradigm
in which datatype ornamentation of the tree is cleanly separated
from the tree itself.

regards,
Sean

http://seanmcgrath.blogspot.com



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.