OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] Impact of XML Schema changes on code that is generated by data binding tools?

Roger, I do not believe your question is answerable by mortals.
You are asking 

What happens if my applications data types change ?

Without knowing what assumptions your application makes about its data
types, this is unanswerable.
Its not specific to xml at all.

David A. Lee

-----Original Message-----
From: Costello, Roger L. [mailto:costello@mitre.org] 
Sent: Saturday, January 15, 2011 8:01 AM
To: xml-dev@lists.xml.org
Subject: [xml-dev] Impact of XML Schema changes on code that is generated by
data binding tools?

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' \.-]+" />

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?



XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

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

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS