|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML is boring (was Re: coming clean with the SGML crowd)
It all depends on how you look at it. If you agree on reserving a tag name, then you can express type information in the same syntax as XML. For example: <typeinfo> <EVENT> <NAME> <type>string</type> <description>User supplied name of the event</description> </NAME> <TIME> <type>ui4</type> <description>Number of seconds since 1970-01-01</description> </TIME> <CHECKSUM> <type>ui8</type> <description>MD5 checksum of the NAME and TIME fields</description> </CHECKSUM> </EVENT> </typeinfo> Granted, this is a simplistic method but all it is meant to do is supply a human reading the XML enough information to write a validation routine for the data. IMHO you cannot express enough information in a generic fashion (i.e. DTD or the above scheme) that will allow data validation in a generic fashion. It is easy to validate the simple things like "this is a number" or "this is a date" but validating things like "this is an MD5 checksum of the previous two fields" is impossible. Sam -----Original Message----- From: Andy Dent <dent@h...> To: Samuel R. Blackburn <sblackbu@e...>; Peter Murray-Rust <peter@u...>; xml-dev@i... <xml-dev@i...> Date: Friday, September 11, 1998 6:51 AM Subject: Re: XML is boring (was Re: coming clean with the SGML crowd) >At 6:28 PM +0800 11/9/98, Samuel R. Blackburn wrote: >>Looking at XML from a data centric >>perspective, there are things in it that are worthless, DTD's >>for example. >I disagree with this - DTD's for example will help us build a database >schema to contain the XML. Otherwise we'd have to scan a large XML file to >deduce the structure then rescan to store into the database. > >This is a wholly data-centric viewpoint. >Andy Dent BSc MACS AACM, Software Designer, A.D. Software, Western Australia >OOFILE - Database, Reports, Graphs, GUI for c++ on Mac, Unix & Windows >PP2MFC - PowerPlant->MFC portability >http://www.highway1.com.au/adsoftware/crossplatform.html 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! 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
|
|||||||||

Cart








