What is the simplest and minimalistic java xml api?

前端 未结 7 651
我在风中等你
我在风中等你 2021-01-07 06:12

There are many pretty good json libs lika GSon. But for XML I know only Xerces/JDOM and both have tedious API. I don\'t like to use unnecessary objects like DocumentFactory,

7条回答
  •  迷失自我
    2021-01-07 06:43

    Deppends on how complex your java objects are: are they self-containing etc (like graph nodes). If your objects are simple, you can use Google gson - it is the simpliest API(IMO). In Xstream things start get messy when you need to debug.Also you need to be carefull when you choose an aprpriate Driver for XStream.

提交回复
热议问题