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

RE: Validation vs performance - was Re: Fasttext out


fasttext
At 6:20 PM -0400 4/19/04, Alessandro Triglia wrote:

>If you expect an attribute "age", will you accept an attribute "Age"
>instead?
>
>If you expect an attribute "age", will you accept a child element <age>
>instead?
>
>If you expect an attribute "abc:age", will you accept an attribute "age"
>(unqualified) instead?
>
>If you expect two child elements <a> and <b>, will you accept a <c> in
>between?  What if you have a <d> before the <a> but the mandatory element
><b> is missing altogether?  Will you accept and know how to handle this
>situation?
>
>Will you accept a namespace name "abcde" when a schema specifies the
>namespace name "abcdef", or "abcdef/", or "ABCDE"?
>
>Are you saying that it has become a common idioma in application development
>to expect and accept one or more of the above?  I cannot believe you really
>mean that.

I won't speak for Stephen, but depending on external context, I might 
accept any or all of those. The first task for a robust system is to 
see what you've got and match it up against what you expect. If it 
doesn't match, then toss it off to a human, and have them look at it. 
If it's obvious what was intended, then add the necessary chunk to 
your processing software to handle the modified format. I'm not sure 
what to call this idiom--Extreme Input?--but it works. The first 
couple of weeks you try it, you're going to be writing a lot of 
custom code, but it tends to rapidly settle into a steady state with 
new formats encountered only very occasionally.
-- 

   Elliotte Rusty Harold
   elharo@m...
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA

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.