[jdom-interest] Which API to use? JDOM? SAX? PULL?

Elliotte Rusty Harold elharo at metalab.unc.edu
Sat Jul 20 13:25:27 PDT 2002


Right now, I don't think pull parsing has gotten beyond the 
experimental stage. Existing pull parsers in Java do not correctly 
implement the XML 1.0 specification. The design patterns are 
interesting, but more work is needed on the implementations before 
pull parsing will be acceptable.

Also, pull is fundamentally read-only. If a read-only API satisfies 
your needs, you could certainly use SAX for a very efficient, very 
correct, very fast program. If you need the read-write capability of 
JDOM, then pull won't do everything JDOM will do.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at 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/    |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list