YOUR FEEDBACK
More on the Software Assembly Question - Do Design Patterns Help?
Yanic wrote: Hi, > UML and MDA are being changed to be more data and doc...
SOA World Conference
Virtualization Conference
$50 Savings Expire May 23, 2008... – Register Today!


2007 West
GOLD SPONSORS:
Active Endpoints
Your SOA Needs BPEL for Orchestration
BEA
Virtualized SOA: Adaptive Infrastructure for Demanding Applications
Nexaweb
Overcoming Bandwidth Challenges with Nexaweb
TIBCO
What is Service Virtualization?
SILVER SPONSORS:
WSO2
Using Web Services Technologies and FOSS Solutions
Click For 2007 East
Event Webcasts

2008 East
PLATINUM SPONSORS:
Appcelerator
Think Fast: Accelerate AJAX Development with Appcelerator
GOLD SPONSORS:
DreamFace Interactive
The Ultimate Framework for Creating Personalized Web 2.0 Mashups
ICEsoft
AJAX and Social Computing for the Enterprise
Kaazing
Enterprise Comet: Real–Time, Real–Time, or Real–Time Web 2.0?
Nexaweb
Now Playing: Desktop Apps in the Browser!
Sun
jMaki as an AJAX Mashup Framework
POWER PANELS:
The Business Value
of RIAs
What Lies Beyond AJAX?
KEYNOTES:
Douglas Crockford
Can We Fix the Web?
Anthony Franco
2008: The Year of the RIA
Click For 2007 Event Webcasts
SYS-CON.TV
TODAY'S TOP SOA & WEBSERVICES LINKS


Rube Goldberg Would Have Loved XML Schema

Digg This!

Rube Goldberg, Pulitzer Prize-winning cartoonist who illustrated complex ways to achieve easy results, saw his cartoons as "symbols of man's capacity for exerting maximum effort to accomplish minimal results." He believed there were two ways to do things: simple and hard, and that a surprising number of people preferred the latter.

At this writing the XML-Dev mailing list is debating the role of XML for IETF protocols (more specifically, the requirement to use XML Schema when defining XML-based IETF protocols). (XML-Dev is a high-traffic mailing list targeting XML developers. Readers are encouraged to join and participate at www.xml.org/xml/xmldev.shtml).

Why the concern? XML Schema has been a W3C Technical Recommendation for well over a year. You'd expect the members of XML-Dev (many of whom are well-known thought leaders in the XML community) to endorse the use of XML-based IETF protocols. While the group seems to endorse the concept of XML-based protocols, controversy arises when these protocols must use XML Schema to define the elements, attributes, structures, and datatypes used by the protocol. Depending on whom you talk to, XML Schema may be regarded as overly complicated or a panacea for supporting both simple and complex datatypes.

The source of the controversy is a new (6/4/2002) Internet Draft, "Guidelines for the Use of XML within IETF Protocols" (downloadable from http://search.ietf.org/internet-drafts/draft-hollenbeck- ietf-xml-guidelines-05.txt), that describes basic XML concepts, analyzes alternatives in the use of XML, and provides guidelines for using XML within IETF standards-track protocols.

While XML wasn't originally designed to be a protocol, its ability to model complex structures in an open manner lends itself to such. A quick glance at recent Internet Drafts reveals over 40 separate initiatives using XML. It became fairly obvious that some sort of "best practices" for designing XML-based protocols would be needed. Section 4.6 the Internet Draft recommends that XML Schema be adopted as the standard formal mechanism to define structural and data content constraints for XML protocols. Specifically:

Protocols should use an appropriate formalism for defining validity of XML protocol elements. XML Schema should be used as the formalism in the absence of clearly stated reasons to choose another.

This seemingly harmless statement has caused a bit of an uproar. Miloslav Nic, founder of Zvon (www.zvon.org), states flatly: "It would be a disaster if IETF adopted XML Schema." An XML Schema expert, having designed and built the free XML Schema tutorials on the Zvon site, he readily admits that each time he approaches XML Schema he feels "like a novice." Jiri Jirat, coauthor of the tutorials, also admits having "difficulty." Both men are quite familiar with XML and XML-related technologies, having developed over 15 in-depth tutorials for Zvon.org. If these guys are having trouble understanding the spec, what hope does an average developer or group of analysts have? As they say, "We're not aware of anyone who would claim that he or she really understands the specification."

The XML Schema specification is overly ambiguous, enabling developers to interpret its various aspects in radically different ways. According to Miloslav, "Our interpretation can change several times during a single discussion." Specifications are supposed to cut through the clutter by clearly defining the terms, concepts, syntax, and rules for working with a particular technology. XML Schema seems to have failed us in this area.

Realizing the intricate nature of the spec, the designers produced an XML Schema Primer. While useful, it fails to clearly illustrate the more arcane portions of the overall specification. Understanding the primer is clearly not enough. "If you get away from it for a week or two, it's like starting from the beginning," says Miloslav. "Adopting XML Schema for future standards development could create tremendous problems for everyone."

Not everyone feels this way. According to JP Morgenthal (coeditor-in-chief of XML-Journal), "While it's true that XML is designed to be simple, there's no reason that concepts, tools, and applications built using XML need to be implicitly simple." In JP's opinion, "exchanging data across stove-piped applications and different organizations requires a complex representation that best allows organizations to ensure equality and cleanliness of the data."

While JP raises some interesting points, nothing prevents a comparatively simple solution from solving a rather complex task. Indeed, a primary reason for the popularity of Web services is that they're relatively easy to understand and implement. RELAX NG proves that difficult validation requirements can be met using fairly simple (i.e., elegant) designs. RELAX NG is capable of performing much of the functionality of XML Schema (and more) using a compact, easy-to-understand specification. The more mature XML Schema, however, has been endorsed by the W3C (which some rather short-sighted managers feel should be a requirement). The XML community must avoid painting itself (or being painted) into a corner with XML Schema. Other, possibly better, alternatives are available - each should be explored in its own right.

What do you think? Debate the merits of XML Schema, RELAX NG, Schematron, et al. in the XML-Journal Forums at www.sys-con.com/fusetalk/categories.cfm?catid=4.

About John Evdemon
John Evdemon, formerly coeditor-in-chief of XML-Journal, is an Architect with Microsoft's Architecture Strategy Team covering BPM, SOA and Internet Scale Computing. He is an XML and e-business expert, having served as CTO/Director of XML-Related Products for both a large integration platform vendor and a small XML-centric start-up. He has been working with XML since its early beginnings, is an Invited Expert with the W3C XML Core Syntax Working Group and has chaired several industry-specific XML initiatives.

XML JOURNAL LATEST STORIES . . .
3rd International Virtualization Conference & Expo: Themes & Topics
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discussed in NYC June 23-24, 2008 by the world-class speaker faculty at the 3rd International Virtualization Conference & Expo being held by SYS-CON Events in The Roosevelt Hotel, in midtown
EDI to XML: A Practical Approach
While EDI transactions account for most worldwide commercial activity, XML-based alternatives are beginning to gain traction. According to Forrester Research, stateful XML, stateless XML, and even flat file exchanges are all projected to grow at a faster rate than EDI over the next few
Red Hat Named "Platinum Sponsor" of Virtualization Conference & Expo
Red Hat is a trusted open source provider. Red Hat offers enterprise customers a long-term plan for building infrastructures on the quality and innovation of open source. Combining open source operating system platform, Red Hat Enterprise Linux, together with applications, management
JustSystems Contributes Key XBRL Rendering Technology to Financial Community
JustSystems announced that it is contributing intellectual property rights for its invention of eXtensible Business Reporting Language (XBRL) rendering technologies to XBRL International, the standards body responsible for the oversight of the XBRL specification. The invention, known a
JustSystems Launches Campaign for XBRL Success
JustSystems announced its campaign to help organizations adopt XBRL (eXtensible Business Reporting Language), the XML-based standard for communicating financial and business information. In related news, JustSystems also announced that it has contributed intellectual property rights of
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS
SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
Click to Add our RSS Feeds to the Service of Your Choice:
Google Reader or Homepage Add to My Yahoo! Subscribe with Bloglines Subscribe in NewsGator Online
myFeedster Add to My AOL Subscribe in Rojo Add 'Hugg' to Newsburst from CNET News.com Kinja Digest View Additional SYS-CON Feeds
Publish Your Article! Please send it to editorial(at)sys-con.com!

Advertise on this site! Contact advertising(at)sys-con.com! 201 802-3021

SYS-CON FEATURED WHITEPAPERS


ADS BY GOOGLE
BREAKING XML NEWS
Woodstream Selects EXTOL Business Integrator to Improve Business Processes, Customer Collaboration and Internal Integration
Woodstream, providers of pet, lawn-care and animal-friendly brands such as Perky-Pet,