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

Re: Fwd: Not using mixed content? Then don't use XML

  • From: Andrew Welch <andrew.j.welch@gmail.com>
  • To: Jim Melton <jim.melton@oracle.com>
  • Date: Tue, 9 Apr 2013 09:45:29 +0100

Re: Fwd:  Not using mixed content? Then don't use XML
> I've used XML schemata (DTDs and XSDs) for many years and they have served
> me very well.  Their use has helped me avoid many traps in data that I
> generate and in data that I accept from others, and they have amply paid for
> their use repeatedly.

One issue I still haven't found a good solution or answer to is when
you have additional 'business rules' validation performed by the
application:

- application parses the xml and validates it using the xsd

- the application then performs some additional validation of 'business rules'

This has the following problem:

- the xsd alone isn't sufficient for a 3rd party to check the xml will
parse successfully

Do you then:

- move all the business rules into the XSD ?

or

- provide 3rd parties with the parsing side of your app, so they can
verify the xml using that ?

If you add all the business rules to the XSD, you then leave the 3rd
party to decipher cryptic xsd failure messages- cvc-complexType
anyone?  The 3rd party would much prefer some human readable docs,
rather than learn XSD.

Then, do you just expect the xml to be correct in your application, or
do you still perform the business rule checks?  The reality of the
situation is you have to perform the checks again, so then you open
yourself up to a mismatch between xsd and application.  You would of
course much prefer to provide the user with tailored errors messages,
they would prefer that too.

How do members of the list handle this situation?

cheers

-- 
Andrew Welch
http://andrewjwelch.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.