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

XML and embedded compound data types (was "Why XML data typin is hard")

  • From: "Gabe Beged-Dov" <begeddov@j...>
  • To: <xml-dev@i...>
  • Date: Mon, 30 Nov 1998 09:08:41 -0800

embedded data types
I have been reading the latest postings on XML data typing and want to throw
out a different viewpoint. several caveats are that I haven't perused all of
the archives to see if I'm tramping down well-worn paths. I am also much
more interested in the non-prose uses of XML so take that into account.

The perspective is the possibly naive one that XML can/should be used to
capture ALL of the structural aspects of a complex tree of data. Wherever a
compound type occurs in the source data, it should be mapped to a
corresponding compound type in XML.  A key heuristic to see if this approach
is being adhered to is to see if any attribute  values or character data
requires additional parsing by the application in order to deserialize
additional structure.

In the case of a date or float, I would argue that they are both compound
types and should be represented as such. If this approach is chosen, you can
end up using integers and enumerations (as long as you use attributes). This
is obviously much more verbose, but cleanly separates content from
presentation. I forget which of the many schema proposals used this approach
but at least one did.  If you adhere to this approach, alot of the issues of
providing inline support for validation of character data (that will require
additional parsing by the application) goes away.

Many issues of data typing remain, such as how to recognize a valid country
name, but these are not structural issues related to compound types hiding
inside a human readable serialization  format.

Gabe Beged-Dov
www.jfinity.com





xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.