<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Darius<br>
<br>
Am 02.08.13 12:28, schrieb Darius Miliauskas:<br>
</div>
<blockquote
cite="mid:CAM6O59fadjuKDHydTZC_o_n_P=KNQPPXVBs-cEpTrRQVXzNMwQ@mail.gmail.com"
type="cite">
<div dir="ltr">Dear All,<br>
<div class="gmail_quote">
<div dir="ltr">
<div><br>
</div>
<div>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?</div>
</div>
</div>
</div>
</blockquote>
<br>
It depends a bit on what you want to do.<br>
<br>
If you are handling "small" documents, then I would recommend DOM,
whereas you might want to use the following utility class<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/wyona/commons/blob/master/src/java/org/wyona/commons/xml/XMLHelper.java">https://github.com/wyona/commons/blob/master/src/java/org/wyona/commons/xml/XMLHelper.java</a><br>
<br>
which is part of the library<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/wyona/commons">https://github.com/wyona/commons</a><br>
<br>
which is also included by Yanel<br>
<br>
If you are handling "big" documents (also for streaming), then I
would recommend SAX.<br>
<br>
HTH<br>
<br>
Michael<br>
<blockquote
cite="mid:CAM6O59fadjuKDHydTZC_o_n_P=KNQPPXVBs-cEpTrRQVXzNMwQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">
<div><br>
</div>
<div><br>
</div>
<div>
Best,</div>
<div><br>
</div>
<div>Darius</div>
</div>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>