How to unmarshal xml without mapping the root xml element?

后端 未结 3 1331
一生所求
一生所求 2021-01-15 23:11

I want to unmarshal a xml file containing a collection of data, like this

 
      Jim
      Tom<         


        
3条回答
  •  醉梦人生
    2021-01-15 23:42

    Look for a way to tell Castor that you'd like it to generate a java.util.List of Person instances.

    http://www.castor.org/how-to-map-a-list-at-root.html

提交回复
热议问题