Java: XML to Object (or Array)

前端 未结 5 1533
清酒与你
清酒与你 2021-01-15 08:04

How could I convert a XML Document to a Java Object (or Array)? I readed the XML like this:

DocumentBuilderFactory dFactory = DocumentBuilderFactory.newInsta         


        
5条回答
  •  别那么骄傲
    2021-01-15 08:54

    I have used Simple XML and have found it quite easy and powerful. I am not as familiar with XStream, but Simple lets you control your XML schema using annotations which gives you a lot of freedom. The guy who writes it is always responsive on his mailing list.

提交回复
热议问题