How to map xml fields without parent tag to java list?
问题 I have following xml response from web service which need to map to java class. <api1Response> <timeStamp>06/24/2016 07:45:10</timeStamp> <ippProjectName>xyz</ippProjectName> <project> <projectId>1</projectId> <projectName>ABC</projectName> <dataDate>06/06/2016</dataDate> </project> <project> <projectId>2</projectId> <projectName>PQR</projectName> <dataDate>06/06/2016</dataDate> </project> </api1Response> I have mapping class like class api1Response{ String timeStamp; String ippProjectName; /