[Home] [By Thread] [By Date] [Recent Entries]


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
   elharo@m...
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member