[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

Re: The State of Native XML databases

John Snelson john.snelson at oracle.com
Tue Aug 21 11:49:51 PDT 2007


  Re: The State of Native XML databases
Jeff Dexter wrote:
> XML is self-describing in terms of structure, but not type, which means
> runtime conversion whenever you want to do a date comparison, which is
> expensive and prone to error. Using a schema at least you find the error
> before you hit the query, and it affords a lot of XQuery processors
> opportunity for more efficient processing (though that's a whole other
> discussion regarding the capabilities of XQuery and XML databases).

I think a strong argument could be made that a criteria for being a well 
designed XML document is the ability to tell an element's type from it's 
name - or at least from the path to it. This is why I said XML /could 
be/ self describing.

Of course, there are plenty of badly designed XML formats out there.

> Further, the assertion that using a schema prohibits evolution isn't
> completely true. The rigidity of namespaces in XML Schema is a nuisance when
> specs wish to use it as a guideline for newer versions, but XML schema
> allows for extensibility both in terms of element and attribute content, and
> an XML database can then defer to LAX validation to grow on the fly with
> either recognizable or unknown content.

If the only way to provide schema evolution is to plan it into the 
schema from the start or to turn off strict schema checking, I'd say 
that was good evidence of something being broken.

> There's also nothing to say that "schema" support necessarily needs to be
> for validation as a user could suggest one or more schemas merely as a
> guideline for typing nodes much as XQuery uses them for the dual purposes of
> validation and defining in-scope types.

That's an interesting use case, but it's a long way from "ddl=xml schema".

John



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
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-2007 All Rights Reserved.