How to read properties from xml file with java?

后端 未结 7 1383
独厮守ぢ
独厮守ぢ 2021-01-08 00:51

I have the following xml file:


    
        
        

        
7条回答
  •  暖寄归人
    2021-01-08 01:42

    I redommend the XStream.

    It parse the XML in the object with same strutuct.

    About XStream

    The your object will be:

    List
    

    while Resourceshave the attributes, with setters and getters, id that is an object Property with attibutes name and value.

    Hope this help

提交回复
热议问题