Simple XML deserialization

前端 未结 3 1348
心在旅途
心在旅途 2021-01-13 08:59

I am trying out the Simple XML serializer. I am more interested in deserialization from XML->Java. Here is my code as a unit test:

import java.io.StringReade         


        
3条回答
  •  旧巷少年郎
    2021-01-13 09:17

    Java will serialize all of your class members by default if they implement Serializable and adhere to the JavaBean syntax.

提交回复
热议问题