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

SV: When to Validate XML?

  • From: "Jens Jakob Andersen, PDI" <jens.jakob.andersen@p...>
  • To: "Champion, Mike" <Mike.Champion@S...>, xml-dev@l...
  • Date: Tue, 06 Nov 2001 15:02:38 +0100

xml scema
With the danger of stepping on somoebodies toes, I'll dive straight into
the subject: 
* When to Validate XML?

I thinkt that the question could be rephrased as:
"Why Validate XML?"

1. In B2B (A2A) scenarios based on XML as the format for the messages,
we would like to ensure that our services doesn't act on garbage.

2. By validating the XML against i.e. DTD or Schema, we can validate the
structure, but we will still have to validate the _content_ !

If I would build a web.service, I guess that I would validate the
structure of incoming messages against a DTD, and then I would validate
the content. Of course I could in some areas use XML Scema for some of
this validation (i.e. simple range validations?), but I would still need
some app.logic to do the final validation.

Some might argue, that RDF-S or DAML+OIL can be used to describe the
ontologies for doing the app.level validation, but this might be a bit
out of the envelope at the moment.

If I look at the RDBMS world, and the database level validation used
there, i.e. triggers, rules etc., these are in fact mostly used at the
development and testing time, to make sure that the RDBMS will generate
a runtime error when the program tries to insert invalid data, i.e. out
of range data.

Best regards'

Jens Jakob

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.