OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] SAX for Binary Encodings (preserving investment)(ASN.1 and

[ Lists Home | Date Index | Thread Index ]

At 2:03 PM -0500 11/7/03, Bob Wyman wrote:

>	There are a number of possible solutions:
>	1. Insist that all binary types be converted to strings.
>	2. Define an "extended SAX" that passes data with descriptors
>that show the type of data. Thus, a program would be told the type of
>the data being passed and could call a ToString or ToInteger function
>as needed.

Before trying to define an extended SAX, you should make yourself 
aware of the work that has already been done on a schema aware SAX 
(which is a different issue than the question of adding binary data 
to the XML infoset). After much effort by various people, the 
conclusion so far is that type annotation is too ugly and cumbersome 
to be supported within anything resembling SAX. The best that's been 
seen is simply passing a name and a URI for each type along with the 
data. Anything that actually attempted to decode the data in many 
different formats would be even uglier.


   Elliotte Rusty Harold
   Effective XML (Addison-Wesley, 2003)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS