Best XML Builder That Doesn't Use Annotations

Can you recommend a fast XML Builder in Java that doesn't use annotations? Thanks.

+4
source share
5 answers

JAXB 2. You can use it without annotations by defining mappings in XML resources.

+3
source

Betwixt, from apache is pretty good for simple things. http://commons.apache.org/betwixt/

+2
source

Xstream is the best and fastest structure. It is also easier to learn.

+2
source

XMLEncoder . This is a standard Java class, a simple, inefficient way to serialize objects into XML.

+1
source

How about StaxMat e - very lightweight, faster than a cardboard object solution (XStream or JAXB), still reasonably easy to use for many use cases.

Of course, this depends on how quickly you mean the time to write the code (if so, XStream is probably the thing) or the time it started (in this case, simple Stax / SAX script writers like StaxMate or XMLBuilder, things); XStream is not particularly fast, although it is not the slowest thing.

0
source

Source: https://habr.com/ru/post/1315541/


All Articles