[
Lists Home |
Date Index |
Thread Index
]
At 3:24 PM +0000 1/16/02, Al Snell wrote:
>1) Writing CSV code is easier than XML code (no DOM or anything, just
>something like SAX; I write the CSV parser myself in less code than it
>takes to interface with an XML parser)
>
If DOM is too hard (and mostly I agree with you) use SAX or use JDOM.
JDOM certainly is much simpler for the sorts of things you're doing.
DOM != XML
>2) Data corruption? XML parsers are *fragile*, CSV parsers can often cope
>with erronious data in ways that XML parsers mustn't if they are to be
>standards compliant!
>
That's a feature, not a bug. If the data is bad, I want to know about
it ASAP and get it fixed at the source. Draconian error handling is a
very good thing.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible, 2nd Edition (Hungry Minds, 2001) |
| http://www.ibiblio.org/xml/books/bible2/ |
| http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/ |
+----------------------------------+---------------------------------+
|