JAXB Unmarshalling XML string - Looping through all tags

后端 未结 3 590
别那么骄傲
别那么骄傲 2021-01-23 15:05

I am new to Java programming and I am doing Unmarshalling the following XML string. My task is get the names of the customers in this string. I have done it for one customer. I

3条回答
  •  遥遥无期
    2021-01-23 15:29

    If you create Data class with proper JaxB annotations and with field that is a list of Customers, you will be able to unmarshall entire thing at once without iterating through xml string.

提交回复
热议问题