Next in thread → Next in month →

RE: [xml-dev] Re: SAX is not a read-only API (wa RE: [xml-dev] re: XML SIG 17...)

From
Elliotte Rusty Harold <>
To
Date
2002-09-13T14:39:21Z
ID
<p04330102b9a7a8608174@[192.168.254.4]>
Thread
RE: [xml-dev] Re: SAX is not a read-only API (wa RE: [xml-dev] re: XML SIG 17...)
At 9:59 PM -0600 9/12/02, Aaron Skonnard wrote:

>Nothing stops an XMLReader implementation from pulling information from
>a database and making it look like an XML Infoset to the consumer.
>

Have you actually tried to do this? I have. See 
http://www.cafeconleche.org/books/xmljava/chapters/ch08s05.html. It 
can be done, but because this was not the original goal of XMLReader, 
the interface just doesn't fit. It's an exercise in pounding a square 
peg into a round hole. It's extremely ugly, and clear evidence that 
SAX was not intended to be used in this manner.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold |  | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          XML in a  Nutshell, 2nd Edition (O'Reilly, 2002)          |
|              http://www.cafeconleche.org/books/xian2/              |
|  http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/  |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |
+----------------------------------+---------------------------------+
Next in thread → Next in month →