XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] reasons why an XML instance must be validated with a XML schema

ilango,
Questions you should ask yourself about schema:

How strong is the interface contract?  Is there a distinction between interface definition and business process?  If the interface rules are distinct from the business process, how much of the interface contract that exists between the systems is expressible using XML schema?  Are there parts of the interface specification that cannot be conveniently expressed using schema?  If schema doesn't do all of it, how do you validate the rest of the interface contract, and how convenient is it?  Are there other technologies that are just as convenient (in development and deployment terms) as schema that are better at encoding the rules for the interface?  At bottom the question is, how well does the tool align with the business requirement?

There is an awful lot of schema experience out there, so it has an edge (in my part of the world anyway) on convenience, but it tends to lose out when looked at in terms of its ability to express business rules.  Most recently I did some review on an interface where the developers were trying to express a number of interface rules using schema (cross field validation expressed as choices among alternate complex types was a disturbing idea) but were not getting good coverage of their business rules with it.  I recommended a combination of a much simpler schema and schematron (and genericode) and some other stuff to get the focus back on the business rules and off the data structure.  They got where they got to by choosing a tool and then trying to make it do what they wanted instead of looking first at what they needed. 

Greg

On Wed, Sep 10, 2008 at 1:05 AM, ilango <ilangocal@yahoo.com> wrote:
I just started working on a project that uses JMS/WebSphere MQ with non-J2EE systems to build an enterprise system. We would be using XML for all the request/response message flows that take place between two system (for example, a JMS Listener and one or more than one queues.

I was posed with the following scenario: Our Listener Module submits document requests in XML formatted data into an input message queue monitored by a document generaton engine.
The need for validating the XML naturally arises.  Should the XML be validated against an XML schema.
The question they raised was:
If so, why should we use XML schema to validate XML?

So this is the question I am trying to answer for myself and for my team here.

Any suggestions, ideas are gratefully accepted.

thanks
ilango







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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS