RE: [xml-dev] SAX for Binary Encodings (SAD-SAX)

From
Elliotte Rusty Harold <>
To
, 'Amelia A Lewis' <>
Date
2003-11-08T17:39:39Z
ID
<p06002002bbd2da85adc7@[192.168.254.4]>
Thread
RE: [xml-dev] SAX for Binary Encodings (SAD-SAX)
At 11:22 AM -0500 11/8/03, Bob Wyman wrote:


>     public interface TypedContentHandler extends ContentHandler {
>       public void values(java.lang.Object value)
>          throws SAXException;
>     }


This won't work. There are numerous problems including:

1. People want primitive data types often instead of objects.
2. It's type unsafe. OBject is not suitable replacement for 
Date/Integer/int/etc.
3. What do you pass when the data doesn't match the schema?


-- 

   Elliotte Rusty Harold
   
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA