On 01/19/2011 04:10 AM, jcaristi wrote:
>
> Archie Cobbs wrote:
>   
>>
>> I have a somewhat contrarian view, but IMHO this is a good example of why
>> XSD documents are basically useless. Invariably XML documents require
>> programmatic, runtime validation beyond what XSD provides. As I understand
>> things SOAP requires them; for me, that's a good reason to avoid SOAP (not
>> to mention most other products of Microsoft).
>>     

I'm certainly not going to argue with you over the limitations of XSD.
What you can express in terms of schema simpleType restrictions is
limited, and some of the options are ugly (especially regular
expressions!). And yes, in essentially every non-trivial case you still
need to perform business-level validation of documents even after you've
schema-validated them.


> ...
> Very important points.  Even if JiBX could generate the JSR-303 annotations
> from the XSD, they would still most often be incomplete.  I think your
> approach is a very good one given the state of the specifications and
> available components.
>   

Very likely incomplete in terms of business logic, though I think the
fast-fail approach I outlined would still be very beneficial to
developers working with supplied schemas. There are many (and more all
the time) complex XML schemas in use by various industries, and having
both JavaDocs that describe the restrictions on particular values (for
your IDE) and immediate error reporting when you set a value incorrectly
at runtime would be a powerful aid to working with these schemas.

  - Dennis

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to