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

Re: XML Schema considered harmful?


Re:  XML Schema considered harmful?
I use XML Schema at work on a particular project because it has basically
been decreed higher up.  The schemas are complex because they are long, but
don't use a lot of complex capabilties of XMl schema.  I have tried to keep
them as simple as possible (because that's all I can manage to handle) and
the most advanced feature we use is element substitution groups.  These
schemas import other schemas that use different target namespaces.

We use the schemas for validation checking during development of our
message-generating code, but not to validate each instance as it is
received.

Two other people work with and develop these schemas.  I find that each time
I get a new revision from them, out of say five schemas that work together,
two will have some problem that prevents them from working.  All of us use
XML Spy to check the schemas, and still we get errors.

Sometimes I also use xsv, and sometimes Spy and xsl disagree.  When that
happens, I usually find it impossible to read the Rec and figure out which
one to go with.  Some of this may have to do with error messages (which are
lousy and sometimes misleading) or lax/strict validation, and generally when
I get a schema to work with xsv it will also work with Spy (these statements
refer to pre-version-4.4 of Spy).

To summarize this experience, I find XML schema to require far more
experimental computing to get right, and to be less predictable, than any
other xml thing I have been involved with.  I have to experiment a lot with
xslt, too, but when I'm done I generally understand what is going on and
what that part of the Rec means.  Not with XML Schema.

I'm looking forward to the day when I can write a schema in RNG and
translate it to XML Schema when I need to.  On the other hand, I like
element substitution groups.

Hoping-to-keep-things-simple-ly yours,

Tom P



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.