Re: Why XML data typing is hard

John Cowan (cowan@locke.ccil.org)
Fri, 04 Dec 1998 12:53:44 -0500


Joel Bender wrote:

> How about a new layer between XML and the application? The layer (a)
> filters SAX-like 'messages' (function/procedure calls) from the parser to
> the application and applies patterns to data as necessary, generating new
> messages

Did you say "filters SAX"? Head to my web page (see below) to get
hold of a useful framework.

> or (b) can be applied to a DOM implementation to check the
> validity of a document more completely.

Also on that page: DOMParser, which walks a DOM and generates
SAX events from it.

> I assume that date formats have even more variations than numbers, at least
> until there is agreement on a stardate!

Actually ISO 8601 is slowly gaining on its competitors, and has a
good chance of winning.

-- 
John Cowan	http://www.ccil.org/~cowan		cowan@ccil.org
	You tollerday donsk?  N.  You tolkatiff scowegian?  Nn.
	You spigotty anglease?  Nnn.  You phonio saxo?  Nnnn.
		Clear all so!  'Tis a Jute.... (Finnegans Wake 16.5)