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

Re: Constrain the Number of Occurrences of Elements in your XM


Re:  Constrain the Number of Occurrences of Elements in your XM
>Who pays and how do the diagnostics help with the
>money?  Do you say to the client "well, someone sent us a document that
>was too big so you don't get to penalise us"?  They may say "it wasn't
>us so we don't care".  They may just laugh and walk away.  They may say
>"we sent you a document this big during testing and it validates against
>your schema", and then laugh and walk away. 

Is this not merely an example of trying to do too much with XML Schema?
There are many things that XML Schema can't do that might be considered
business critical - e.g. context dependent validation (so we use Schematron
instead). XML Schema isn't the only layer in validation and processing, nor
should it be regarded as such.

In my opinion this is a common feature of how many people view XML schema.
Almost every day I meet people that assume that the ability of XML (and
therefore XML Schema) to use human readable tag names equates to XML Schema
being self-documenting, that no external data is necessary to aid
understanding of it. So not only is a schema being used in a validation
layer, it's also being used the entire documentation of the XML format tghat
it is to validate. This is simply put, abuse of XML.

Legal issues regarding financial responsibility for a software failure are
not the sort of things that XML Schema is designed to govern. Put that in a
contract.

If you need to place an arbitrary limit on the size of the XML exchanged and
processed then that should also be done elsewhere. If it really seems
important that such information is published via a schema then put it in a
comment <!-- Please don't send us files larger than 1GB as we can't process
them efficiently --> Let XML Schema do the job its designed for: primarily
validation of XML structure and content.

Just my tuppence worth...

James Walford

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.