[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)

  • From: "Samuel R. Blackburn" <sblackbu@e...>
  • To: <xml-dev@i...>,"Andy Dent" <dent@h...>
  • Date: Fri, 11 Sep 1998 07:19:03 -0400

xml checksum
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!

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.