Am working with the server response with my application. am getting this stuff as response as string.
<Body>
<HotelRQ xmlns="urn:Hotel_Search">
<POS>
<Source Username='USERNAME' Password='PASSWORD' PropertyID='PROPERTYID' />
</POS>
<AvailRequests>
<AvailRequest>
<StayDateRange Start='2009-09-05T12:00:00' End='2009-09-06T12:00:00'/>
<RoomStays>
<RoomStay> <!—for Room 1->
<GuestCounts>
<GuestCount Count='2'/>
</GuestCounts>
<ChildCounts>
<ChildAge Age='10'/>
<ChildAge Age='09'/>
</ChildCounts>
</RoomStay>
</RoomStays>
<SearchCriteria>
<Criterion>
<HotelRef HotelCityName='CITY' HotelName='' Area='' Attraction='' Rating=''/>
<Sorting Preference='2'/>
<ResponseType Compact="Y"/>
</Criterion>
</SearchCriteria>
</AvailRequest>
</AvailRequests>
</HotelRQ>
</Body>
can i use jaxb for this?
i am using this file to parse which i am getting on server response. what i nned to do for parsing it using JAXB. am getting it in String format.and how can i directly map into java class variables or beans? thanx.