Deserialization of xml with simplexml in java

前端 未结 2 1820
花落未央
花落未央 2021-01-19 12:29

I\'m trying to deserialize an xml string with SimpleXML, i\'ve looked at their examples but i\'m not really sure that wether i grasp the concept or not.

Sample XML (

2条回答
  •  庸人自扰
    2021-01-19 13:09

     @Element( required=false)
        private String language;
    

    Add this in your Item class and generate the getter and setter.I think it should work

提交回复
热议问题