Tuesday, March 28, 2006

XML-Schema and Object-Oriented Programming Grammars

I've recently been trying to digest the JAXB 2.0 specification and I've been amazed at the complexity that is needed to support the XML-Schema paradigm from Java. And although I'm not familiar with the way XML-Schema is supported in other OO languages, I'd be surprised if it isn't just as complex.

I appreciate XML-Schema. I think the W3C did an excellent job defining it clearly, but to claim it to be simple would be specious. I wonder if there isn't some way to define a subset of XML-Schema features that map more readily and concisely onto an object-oriented paradigm, much like what the WS-I Basic Profile did for WSDL.

Having a high degree of flexibility in XML-Schema is great, but when it gets down to the practical application, certain features rarely get used because, in the end, the instance documents have to be consumed by by a real programming language.


Post a Comment

<< Home