[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Impact of XML Schema changes on code that is generated by
Roger, I do not believe your question is answerable by mortals. You are asking <paraphrase> What happens if my applications data types change ? </paraphrase> Without knowing what assumptions your application makes about its data types, this is unanswerable. Its not specific to xml at all. ---------------------------------------- David A. Lee dlee@calldei.com http://www.xmlsh.org -----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: 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' \.-]+" /> </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 _______________________________________________________________________ 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] |
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|