Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xml-dev] Here's why it's not always a good idea to embedvalidation information (e.g., schemaLocation) in instance documents

From: "Costello, Roger L." <costello@-----.--->
To: "xml-dev@-----.---.---" <-------@-----.---.--->
Date: 1/6/2009 4:37:00 PM
Hello John,

> Was there ever a good reason to embed validation information 
> in an instance document?

In education settings, where you are learning XML Schemas and doing validations one at a time using an IDE, it is convenient to embed schemaLocation within instance documents. And, in a closed environment where you are certain of who's sending the data, it may be convenient to embed schemaLocation within the instance document.

> Isn't that [embedding schemaLocation within instances] fundamentally backwards, 
> like trusting a thief because /he says/ he's not a thief?

Nicely stated!

/Roger


-----Original Message-----
From: John Snelson [mailto:john.snelson@o...] 
Sent: Tuesday, January 06, 2009 10:28 AM
To: Costello, Roger L.
Cc: 'xml-dev@l...'
Subject: Re: [xml-dev] Here's why it's not always a good idea to embed validation information (e.g., schemaLocation) in instance documents

Hi Roger,

Your presentation looks good, but I'm not sure it goes far enough. Was 
there ever a good reason to embed validation information in an instance 
document? Isn't that fundamentally backwards, like trusting a thief 
because /he says/ he's not a thief?

John

Costello, Roger L. wrote:
> Hi Folks,
> 
> I created a few Powerpoint slides that describe why it's not always a good idea to embed validation information in XML instance documents:
> 
> http://www.xfront.com/How-to-Specify-Validation-Information.ppt 
>  
> 
> Comments welcome.
> 
> /Roger

-- 
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:            http://oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent