[jdom-interest] SAX vs. JDOM
Guy Nirpaz
nirpaz at netvision.net.il
Mon Jun 26 10:12:50 PDT 2000
Hi folks,
I'm using JDOM for quite a while - and I really enjoy it.
But ...
In many applications I write, the first step when an XML message (usually a
stream) is converted to a Java object. The object is merely piece of data
with getters/setters methods.
This object is being transferred to other Java object, and so on.
I find it very easy to accomplish using SAX, since I get only the data I
need and everything else is thrown away. Moreover a tree isn't constructed
(performance wise).
The rest of the application is using JDOM for output and other XML
manipulations.
I don't feel comfortable mixing both API's.
I would like to know if I'm missing something here?
Maybe there is a better approach attacking this ?
Thanks,
Guy
More information about the jdom-interest
mailing list