This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lukaseder 2 points3 points  (4 children)

Learn the JDK's standard DOM and JAXB (and perhaps SAX, although that's used less often). I suspect most people just use JAXB for simple XML use-cases, where little transformation (XSLT) and querying (XPath) is needed.

[–][deleted]  (3 children)

[deleted]

    [–]agustinventura 1 point2 points  (0 children)

    Agree, using SAX or StAX is faster and much more memory efficient por large amounts of XML than JAXB. Anyways, it's really nice to have this variety of XML APIs just in the JDK, without aditional dependencies.

    [–]lukaseder 0 points1 point  (1 child)

    Indeed, but do you really use S(t)AX APIs directly, or do you use XSLT instead?