[Yanel-usage] Fwd: Parsing
Michael Wechner
michael.wechner at wyona.com
Fri Aug 2 21:30:19 CEST 2013
Hi Darius
Am 02.08.13 12:28, schrieb Darius Miliauskas:
> Dear All,
>
> I have a question which case to use for XML including in Java. Which
> interface do you recommend to use for parsing: DOM, SAX or StAX?
It depends a bit on what you want to do.
If you are handling "small" documents, then I would recommend DOM,
whereas you might want to use the following utility class
https://github.com/wyona/commons/blob/master/src/java/org/wyona/commons/xml/XMLHelper.java
which is part of the library
https://github.com/wyona/commons
which is also included by Yanel
If you are handling "big" documents (also for streaming), then I would
recommend SAX.
HTH
Michael
>
>
> Best,
>
> Darius
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-usage/attachments/20130802/1749f3ca/attachment.html>
More information about the Yanel-usage
mailing list