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

Re: Do Schema-code binding tools typically ignore user-defined

  • From: Boris Kolpackov <boris@c...>
  • To: xml-dev@l...
  • Date: Thu, 23 Oct 2008 15:06:03 +0200

Re:  Do Schema-code binding tools typically ignore user-defined
Hi David,

Karr, David <david.karr@w...> writes:

> In your experience with tools that generate code from XML schemas, do
> they typically respect, or ignore, user-defined simple types, like
> length restrictions on xsd:string?

To answer this we need to define more precisely what "ignore" means. 
I think what you mean here is ignore for the purpose of validating XML
and/or object model.

There are several different modes in which validation can happen, the
most common are:

1. Validation during parsing of XML to the object model. I believe 
   most tools support this either directly in the generated code or 
   indirectly via a validating underlying XML parser. Our tools
   support this mode using both approaches.

2. Immediate validation as the object model is modified. I believe
   there is only a small subset of XML schema constructs that are
   desirable to validate like this and also possible to implement 
   efficiently. For more information on why it is so refer to this 
   analysis:

   http://www.codesynthesis.com/pipermail/xsd-users/2008-January/001443.html

3. On-demand validation of the object model. In this case the user
   performs a bunch of modifications on the object model and then
   requests a re-validation of the object model or its fragment.

4. Validation during serialization of the object model to XML. Again,
   this can be implemented either directly in the generated code or 
   indirectly via a validating underlying XML serializer. Our tools
   support the generated code approach. Also note that (3) can be
   implemented in terms of (4) by using a "do nothing" underlying
   XML serializer.

Boris

-- 
Boris Kolpackov, Code Synthesis Tools   http://codesynthesis.com/~boris/blog
Open source XML data binding for C++:   http://codesynthesis.com/products/xsd
Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde


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


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-2007 All Rights Reserved.