Started parsing wix-data to xml

This commit is contained in:
Jonas Linter
2025-09-27 12:15:43 +02:00
parent 0f7f1532a0
commit 553fcc7a24
4 changed files with 97 additions and 52 deletions

View File

@@ -1,13 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<OTA_ResRetrieveRS xmlns="http://www.opentravel.org/OTA/2003/05" Version="7.000">
<ReservationsList>
<HotelReservation CreateDateTime="2025-09-27T07:58:55.473029+00:00" ResStatus="Requested" RoomStayReservation="true">
<HotelReservation CreateDateTime="2025-09-27T10:06:47.745357+00:00" ResStatus="Requested" RoomStayReservation="true">
<UniqueID Type="14" ID="6b34fe24ac2ff811"/>
<RoomStays>
<RoomStay>
<TimeSpan>
<StartDateWindow EarliestDate="2024-10-01" LatestDate="2024-10-02"/>
</TimeSpan>
<TimeSpan Start="2025-10-03" End="2025-10-05"/>
</RoomStay>
</RoomStays>
<ResGuests>
@@ -15,20 +13,16 @@
<Profiles>
<ProfileInfo>
<Profile>
<Customer Gender="Male" BirthDate="1980-01-01" Language="en">
<Customer Language="it">
<PersonName>
<NamePrefix>Mr.</NamePrefix>
<GivenName>John</GivenName>
<Surname>Doe</Surname>
<NamePrefix>Familie</NamePrefix>
<GivenName>Miriana</GivenName>
<Surname>Darman</Surname>
</PersonName>
<Telephone PhoneTechType="5" PhoneNumber="+1234567890"/>
<Telephone PhoneNumber="+0987654321"/>
<Email Remark="newsletter:yes">john.doe@example.com</Email>
<Telephone PhoneTechType="5" PhoneNumber="+39 348 443 0969"/>
<Email Remark="newsletter:no">miriana.m9@gmail.com</Email>
<Address Remark="catalog:no">
<AddressLine>123 Main Street</AddressLine>
<CityName>Anytown</CityName>
<PostalCode>12345</PostalCode>
<CountryName Code="US"/>
<CountryName Code="IT"/>
</Address>
</Customer>
</Profile>
@@ -39,11 +33,11 @@
<ResGlobalInfo>
<Comments>
<Comment Name="customer comment">
<ListItem ListItem="1" Language="en">Landing page comment</ListItem>
<Text>This is a sample comment.</Text>
<ListItem ListItem="1" Language="it">Landing page comment</ListItem>
<Text>Wix form submission</Text>
</Comment>
<Comment Name="additional info">
<Text>This is a special request comment.</Text>
<Text>utm_Source: ig | utm_Medium: Instagram_Stories | utm_Campaign: Conversions_Hotel_Bemelmans_ITA | utm_Term: Cold_Traffic_Conversions_Hotel_Bemelmans_ITA | utm_Content: Grafik_4_Spätsommer_23.08-07.09_Landingpage_ITA</Text>
</Comment>
</Comments>
<HotelReservationIDs>