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

Impact of XML Schema changes on code that is generated by databinding to

  • From: "Costello, Roger L." <costello@mitre.org>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Sat, 15 Jan 2011 08:01:17 -0500

Impact of XML Schema changes on code that is generated by databinding to
Hi Folks,

Suppose I design my XML Schema to exactly meet the operational requirements of my users. My XML Schema is designed like a fine watch - all parts are precisely machined to work together.

I am trying to understand the impact of changes to the XML Schema.

Example: Suppose I am building a system that will exchange English family names. I did some research and found that all my users have English language family names under 100 characters in length, and their names consist of the characters: a-z, A-Z, space, hyphen, apostrophe, and period.

The following simpleType exactly implements the data requirements. It uses the minLength and maxLength facets to constrain the length. The regex in the pattern facet constrains the set of characters.

-------------------------------------------------
<simpleType name="English-language-family-name">
     <restriction base="string">
            <minLength value="1" />
            <maxLength value="100" />
            <pattern value="[a-zA-Z' \.-]+" />
     </restriction>
</simpleType>
-------------------------------------------------

Suppose that some time in the future I get new users with very long family names--over 100 characters. Or I get users with accented letters in their names. I update the simpleType to reflect the new operational requirements. What will be the impact of the change?

Specifically, suppose that I use a data binding tool to map my XML Schema to imperative code such as Java or C++ code. What will be the impact of the change on the Java or C++ code? Will the change in the simpleType result in breaking the Java or C++ code?

/Roger


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