Amigos,
Já fiz o mapeamento de todo o XML usando o XStream, no entanto não estou obtendo êxito no parse para o Java ( fromXML(); ). Qual seria a melhor forma de eu mapear esse documento XML usando as Annotations do XStream?
<TrackResponse>
<TrackInfo ID="LJ277670149US">
<TrackSummary>
<EventTime/>
<EventDate>May 24, 2012</EventDate>
<Event>Depart USPS Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21203</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackSummary>
<TrackDetail>
<EventTime>10:36 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Processed through USPS Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21203</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
<TrackDetail>
<EventTime>10:21 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Processed at USPS Origin Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21233</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
<TrackDetail>
<EventTime>9:06 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Accepted at USPS Origin Sort Facility</Event>
<EventCity>PIKESVILLE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21208</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
</TrackInfo>
<TrackInfo ID="LJ277670149US">
<TrackSummary>
<EventTime/>
<EventDate>May 24, 2012</EventDate>
<Event>Depart USPS Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21203</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackSummary>
<TrackDetail>
<EventTime>10:36 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Processed through USPS Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21203</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
<TrackDetail>
<EventTime>10:21 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Processed at USPS Origin Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21233</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
<TrackDetail>
<EventTime>9:06 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Accepted at USPS Origin Sort Facility</Event>
<EventCity>PIKESVILLE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21208</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
</TrackInfo>
<TrackInfo ID="LJ277670149US">
<TrackSummary>
<EventTime/>
<EventDate>May 24, 2012</EventDate>
<Event>Depart USPS Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21203</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackSummary>
<TrackDetail>
<EventTime>10:36 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Processed through USPS Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21203</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
<TrackDetail>
<EventTime>10:21 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Processed at USPS Origin Sort Facility</Event>
<EventCity>BALTIMORE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21233</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
<TrackDetail>
<EventTime>9:06 pm</EventTime>
<EventDate>May 23, 2012</EventDate>
<Event>Accepted at USPS Origin Sort Facility</Event>
<EventCity>PIKESVILLE</EventCity>
<EventState>MD</EventState>
<EventZIPCode>21208</EventZIPCode>
<EventCountry/>
<FirmName/>
<Name/>
<AuthorizedAgent/>
</TrackDetail>
</TrackInfo>
</TrackResponse>
Desde já obrigado!