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

Re: syntax, model


data model xml
tyler@w... (Tyler Close) writes:
>But the document itself structures data. The schema for the
>document is a description of how the data is structured. You are
>using a data model. The schema defines the data model.

Most of the documents I create personally have no schema.  The data
model is open, defined only by the instance.  The code I write for
processing these documents requires no schema.  The code has its own
data model, which may or may not resemble the structure of the document.

>When you write code to fetch a string from an XML document, how do
>you know where in the XML document to look for the string?  The
>XML specification doesn't tell you where to find the string.  You
>must have some kind of data model that tells you where to look for
>the string.

Sure, but there's no need for me to share that data model.  I do
sometimes use XPath, but I never write documents with the XPath data
model explicitly in mind.  (I used to write documents with the SAX data
model in mind, and eventually found I'd written myself into an annoying
corner.)

>If that's your best shot at a definition, you don't have a clear
>notion of what a data model is. Maybe that's why you call it
>poison.

Honestly, I don't give a damn about what a "data model" in the abstract
is or should be.  It's like talking to me about Platonic Forms. (They
really make me laugh.) I'll happily talk about concrete data and how to
represent or process it.  

I constantly find that using other people's data models comes at a cost,
often too great a cost.  I find that creating my own data models - and
encouraging other people to create their own data models - works a lot
better than trying to get everyone to agreement on a common data model
and then implement it separately. (That seems to be the case even if a
common syntax is part of the package.)

That's my experience.  If I lack a 'notion', I can't say it's a 'notion'
I've ever found useful. 

Maybe we have a culture clash here.  I'm not fond of being told I "don't
have a clear notion", while you seem upset that someone else accuses you
of "conflating data models and schemas ...[in]... ignorance".  Working
in markup does seem to change the way people look at information.




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.