$.ajax({
type: 'POST',
url: 'booking/getbookings_XML.php',
data: { type: "Hotell_Demo",
resourceID: escape(document.getElementById("resourceID").value),
date: escape(document.getElementById("date").value)},
success: ResultBooking
});
<bookings>
<booking
application='Hotell_Demo'
customerID='Leiflert'
resourceID='1008'
name='Karl Hotel and Resort'
company='Karls'
location='Exmouth'
date='2001-07-20 00:00:00'
position='26'
status='2'
cost='40'
size='24'
/>
</bookings>