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

RE: Iceberg development (was Re: maps)

  • To: "Xml-Dev (E-mail)" <xml-dev@l...>
  • Subject: RE: Iceberg development (was Re: maps)
  • From: Jeff Lowery <jlowery@s...>
  • Date: Wed, 7 Aug 2002 10:54:56 -0700

choke de iceberg
> -----Original Message-----
> From: Mark Seaborne [mailto:MSeaborne@o...]
> ...
> I was told (at least I think I was told): XML is just text, 
> it is primarily for exchange of structured data, it doesn't 
> need data types because applications at either end of the 
> wire already handle typing; let XML handle the structure, and 
> code at the end points handle the rest. 

How'd you get those endpoints to be able to exchange untyped data without
hiccupping? Tacit understanding? Verbal agreement? Narrative specification?
Formal schema language?

If it's the last (and that would be the least ambiguous), then how do you
know that the data you're exchanging is valid according to the schema? It
doesn't matter that the two internal data models (yours and mine) are
completely different. You can do whatever you want with the data I hand you;
it's your responsibility to determine that the values compatible with the
agreed to (data exchange) schema have mappings to your internal data model.
I don't care what you do with the data, all I care is that I hand you no
surprises. 

Regular expressions help: they add microstructure, if you will.  They don't
add semantics. But there there may not be an accurate lexical representation
of, say, the following:

1) all prime numbers
2) PI
3) reals in  the range +/- 10.13E20
4) Fibonacci numbers

I may intend to pass you, say, a constant PI. It may be a numerical
approximation of arbitrary precision, or it may just be a symbol. You can do
what you want with that, treat is as character data and make it a "cherry
PI" if you wish, I don't care. But I personally cannot violate the contract
that is represented by the schema.  I'm stuck with handing you PI values,
approximate or symbolic, not "cherry" or "apple PI" values. Your app might
choke if I did.

I've seen too many 400+ page mostly narrative specification of data models
that different vendors interpret differently. A schema gives vendors less
wriggle room for interpretation, expecially if that schema can be used for
automated validation.  I'm all for the Iron Fist of Formality when it comes
to data models, including those expressed in XML. Guess I'm just funny that
way.

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.