|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: SAX for Binary Encodings (preserving investment)(ASN.1 and
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 elharo@m... Effective XML (Addison-Wesley, 2003) http://www.cafeconleche.org/books/effectivexml http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
|
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








