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] Re: SAX is not a read-only API (wa RE: [xml-dev]re: XML SI

[ Lists Home | Date Index | Thread Index ]

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 | elharo@metalab.unc.edu | 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/    |


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

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