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

Re: When to Validate XML?


validate xml structure
 
> Ahh,  good point, and one for the validation decision tree:  Use a
> Schema/DTD and XML-level validation to enforce constraints that are
> universal across applications that use a specific data format.  Use
> application logic (procedural code?) to enforce constraints that specialized
> applications know about.  For (a quickly contrived) example, a bookstore
> site might need some specialized module that knows about ISBNs and how to
> validate them against a database; most other modules just need to ensure
> that the ISBN value doesn't get lost and "trust" that nobody mucks with the
> value.


So, what schemas can capture are the constraints common to all apps. How 
about the following possibilities?

(a) Each app (in the worst case) may use a slightly different schema to 
validate a given XML document. That is, each schema can capture any 
special constraints local to the app. I see that this contradicts the 
common notion that schemas are global. However, when it is accepted that 
each app can use its own logic to verify the data, why not extend the 
same to schemas?

(b) In the above example, each app has a slightly different set of 
constrtaints for the same data. Can we not extend this argument to say 
that each app has its own view (both structure and constraints) for a 
given document. In this case, each schema may specify only a subset of 
the structure/constraints. I see that the current validating parsers 
won't tolerate this, but how does this sound in theory?

Subbu




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