XML Strucktur im Überblick

Import

...

<Travity Action="Import">
  <Travels>
    <Travel ImportID="8744">
    <!-- ImportID: Unique String used in all related Nodes /-->
      <Name><!-- String /--></Name>
      <Description><!-- Text /--></Description>
      <RockBottomPrice><!-- Money /--></RockBottomPrice>
      <RockBottomPriceDescription><!-- String /--></RockBottomPriceDescription>
      <Image Width="100" Height="100" Action="CenterSquareResize">
        <ImageID><!-- String / unique ID to refer to Images Section if no URL /--></ImageID>
        <ImageUrl><!-- Image Url for external Import /--></ImageUrl>
      </Image>
      <ImageLarge Width="200" Height="200" Action="CenterSquareResize">
        <ImageID><!-- String / unique ID to refer to Images Section if no URL /--></ImageID>
        <ImageUrl><!-- Image Url for external Import /--></ImageUrl>
      </ImageLarge>
      <!--
        Image & LargeImage
        Width: Width  in px
        Height: Height in px
        Action: CenterSquareResize to center, square and Resize the Image
        Image has to be 100x100px / Image Large 200x200px

        Alternative: Image and ImageLarge Sections like Export with Base64 Encoding
        <Image><!-- Image Base64 encoded /--></Image>
        <ImageType><!-- String / jpeg,png or gif / 100x100px /--></ImageType>
      /-->
      <Blocks>
       <Block>
          <Header class="h1"><!-- Text /--></Header>
          <Content class="summary"><!-- Text /--></Content>
          <Content class="content"><!-- Text /--></Content>
          <Image Align="Center" MaxWidth="500" ZoomImage="1">
            <ImageUrl><!-- Image Url for external Import /--></ImageUrl>
          </Image>
          <RawBlock>
            <!--
              RAWText HTML or JScript Code
              or IFRAME and other TAGS
              keeps untouched
            /-->
          </RawBlock>
        </Block>
      + <Block>
      + <Block>
      + <Block>
      + <Block>
      + <Block>
      + <Block>
      </Blocks>
      <ShowDate><!-- Date ISO 8601 or +Number for details see FAQ Dates in XML Import /--></ShowDate>
      <HideDate>+366</HideDate>
      <Visible><!-- Bit /--></Visible>
      <DisplayOrder><!-- Integer / 0-100 /--></DisplayOrder>
      <BookingEmail><!-- String / Email /--></BookingEmail>
      <SendEmail><!-- Bit /--></SendEmail>
      <InternalCode><!-- String /--></InternalCode>
      <ExternalCode><!-- String /--></ExternalCode>
      <ExternalOperator><!-- String /--></ExternalOperator>
      <ExternalOperatorCode><!-- String /--></ExternalOperatorCode>
    </Travel>
  </Travels>
  <TravelDates>
    <TravelDate ImportID="8744">
      <Name><!-- String /--></Name>
      <Description><!-- Text /--></Description>
      <Price><!-- Money /--></Price>
      <Currency><!-- String / Currency Code ISO 4217 /--></Currency>
      <LumpSum><!-- Money /--></LumpSum>
      <Commission><!-- Float / Percentage 0-100 /--></Commission>
      <StartDate Convert="104">03.02.08</StartDate>
      <EndDate>+23</EndDate>
      <!--
        Dates should be ISO 8601
        if it is not possible we try to convert it
        alternative you can use +Number to add the Days to the EndDate
      /-->
      <ShowUntilEndDate><!-- Bit /--></ShowUntilEndDate>
      <Visible><!-- Bit /--></Visible>
      <InternalCode><!-- String /--></InternalCode>
      <ExternalCode><!-- String /--></ExternalCode>
      <BookingApplication><!-- Bit /--></BookingApplication>
      <Reservation><!-- Bit /--></Reservation>
      <BookingUrl><!-- String /--></BookingUrl>
      <Vacancy><!-- Integer /--></Vacancy>
      <!--
        for using Booking Application and Reservation kepp Vacancy empty
        fro using Booking, Option WaitingList user Vacancy with Integer
        negativ or 0 -> WaitingList possible
        postitiv -> Booking and Option possible
      /-->
      <Booking><!-- Bit /--></Booking>
      <BookingIsBinding><!-- Bit /--></BookingIsBinding>
      <Option><!-- Bit /--></Option>
      <OptionPeriod><!-- Integer / Days an Option will be available /--></OptionPeriod>
      <OptionIsBinding><!-- Bit /--></OptionIsBinding>
      <WaitingList><!-- Bit /--></WaitingList>
      <WaitingListIsBinding><!-- Bit /--></WaitingListIsBinding>
    </TravelDate>
  + <TravelDate>
  + <TravelDate>
  <TravelCountries>
    <TravelCountry ImportID="8744" Name="Deutschland" ISO3166Numeric="276" Code="DE" Code3="DEU"/>
    <!--
      To find the right Country we try to obtain the correct
      CountryID from our Database by querying these fields
    /-->
  + <TravelCountry>
  + <TravelCountry>
  <TravelCategories>
    <TravelCategory ImportID="8744" Name="Kleingruppen" />
    <!--
      To find the right Category we try to obtain the correct
      CategoryID from our Database by querying these fields
    /-->
  + <TravelCategory>
  + <TravelCategory>
  <TravelLinks>
    <TravelLink ImportID="8744" Link="4A1047F6-7F25-4E93-8E19-274D77407A16" />
    <!-- we will add automatically several Travel Links/-->
  + <TravelLink>
  + <TravelLink>
  </TravelLinks>
  <Images>
    <Image ImportID="8744">
      <ImageID><!-- String / unique IF to refer to Images Section if no URL /--></ImageID>
      <ImageUrl><!-- Image Url for external Import /--></ImageUrl>
    </Image>
    <Image ImportID="8744">
      <ImageID><!-- Image GuID /--></ImageID>
      <Image><!-- Image Base64 encoded /--></Image>
      <ImageType><!-- String / jpeg,png or gif/--></ImageType>
      <ImageUrl><!-- Image Url for external Import /--></ImageUrl>
    </Image>
  </Images>
</Travity>

Export

...

<Travity Action="Export" Date="09.11.2007">
  <Travels>
    <Travel>
      <TravelID><!-- Travel GuID /--></TravelID>
      <TravelNumber><!-- Integer / Travel Number /--></TravelNumber>
      <TravelAgency><!-- Agency GuID /--></TravelAgency>
      <Language>0</Language><!-- Language ID /-->
      <Name><!-- String /--></Name>
      <Description><!-- Text /--></Description>
      <RockBottomPrice><!-- Money /--></RockBottomPrice>
      <RockBottomPriceDescription><!-- String /--></RockBottomPriceDescription>
      <Content><!-- RAW Text / HTML Code / HTMLEdit Code /--></Content>
      <ShowDate><!-- Date ISO 8601 /--></ShowDate>
      <HideDate><!-- Date ISO 8601 /--></HideDate>
      <Visible><!-- Bit /--></Visible>
      <DisplayOrder><!-- Integer 0-100 /--></DisplayOrder>
      <User><!-- User GuID /--></User>
      <TravelAgent><!-- Agent GuID /--></TravelAgent>
      <BookingEmail><!-- String / Email /--></BookingEmail>
      <SendEmail><!-- Bit /--></SendEmail>
      <InternalCode><!-- String /--></InternalCode>
      <ExternalOperator><!-- String /--></ExternalOperator>
      <ExternalOperatorCode><!-- String /--></ExternalOperatorCode>
      <ExternalCode><!-- String /--></ExternalCode>
      <Annotation><!-- Text /--></Annotation>
      <Image><!-- Image Base64 encoded /--></Image>
      <ImageType><!-- String / jpeg,png or gif / 100x100px /--></ImageType>
      <ImageUrl><!-- Image Url for external Import /--></ImageUrl>
      <ImageLarge><!-- Image Base64 encoded /--></ImageLarge>
      <ImageTypeLarge><!-- String / jpeg,png or gif / 200x200px/--></ImageTypeLarge>
      <ImageLargeUrl><!-- Image Url for external Import /--></ImageLargeUrl>
      <Created><!-- Date ISO 8601 /--></Created>
      <VisitCount><!-- Integer /--></VisitCount>
    </Travel>
  </Travels>
  <TravelDates>
    <TravelDate>
      <TravelDateID><!-- Date GuID /--></TravelDateID>
      <Travel><!-- Travel GuID /--></Travel>
      <Name><!-- String /--></Name>
      <Description><!-- Text /--></Description>
      <Price><!-- Money /--></Price>
      <Currency><!-- String / Currency Code ISO 4217 /--></Currency>
      <LumpSum><!-- Money /--></LumpSum>
      <Commission><!-- Float / Percentage 0-100 /--></Commission>
      <StartDate><!-- Date ISO 8601 /--></StartDate>
      <EndDate><!-- Date ISO 8601 /--></EndDate>
      <ShowUntilEndDate><!-- Bit /--></ShowUntilEndDate>
      <Visible><!-- Bit /--></Visible>
      <InternalCode><!-- String /--></InternalCode>
      <ExternalCode><!-- String /--></ExternalCode>
      <BookingApplication><!-- Bit /--></BookingApplication>
      <Reservation><!-- Bit /--></Reservation>
      <BookingUrl><!-- String /--></BookingUrl>
      <Vacancy><!-- Integer /--></Vacancy>
      <!--
        for using Booking Application and Reservation keep Vacancy empty
        for using Booking, Option WaitingList user Vacancy with Integer
        negativ or 0 -> WaitingList possible
        postitiv -> Booking and Option possible
      /-->
      <Booking><!-- Bit /--></Booking>
      <BookingIsBinding><!-- Bit /--></BookingIsBinding>
      <Option><!-- Bit /--></Option>
      <OptionPeriod><!-- Integer / Days an Option will be available /--></OptionPeriod>
      <OptionIsBinding><!-- Bit /--></OptionIsBinding>
      <WaitingList><!-- Bit /--></WaitingList>
      <WaitingListIsBinding><!-- Bit /--></WaitingListIsBinding>
      <Created><!-- Date ISO 8601 /--></Created>
    </TravelDate>
  + <TravelDate>
  + <TravelDate>
  </TravelDates>
  <TravelCountries>
    <TravelCountry Travel="..."
                   Country="..."
                   Name="Deutschland"
                   ISO3166Numeric="276"
                   Code="DE"
                   Code3="DEU"/>
    <!--
      Attributes
      Travel:         Travel GuID
      Country:        Country GuID
      Name:           Country String
      ISO3166Numeric: String(3) ISO 3166 Nummeric Code
      Code:           String(2) ISO 3166 Alpha-2 Code
      Code3:          String(3) ISO 3166 Alpha-3 Code
    /-->
  + <TravelCountry>
  + <TravelCountry>
  + <TravelCountry>
  </TravelCountries>
  <TravelCategories>
    <TravelCategory Travel="..."
                    Category="..."
                    Name="Erlebnisreisen"/>
    <!--
      Attributes
      Travel:   Travel GuID
      Category: Category GuID
      Name:     Category String
    /-->
  + <TravelCategory>
  + <TravelCategory>
  + <TravelCategory>
  </TravelCategories>
  <TravelLinks>
    <TravelLink Travel="..." Link="..."/>
    <!--
      Attributes
      Travel: Travel GuID
      Link:   Link GuID
    /-->
  + <TravelLink>
  + <TravelLink>
  + <TravelLink>
  </TravelLinks>
  <Images>
    <Image>
      <ImageID><!-- Image GuID /--></ImageID>
      <Image><!-- Image Base64 encoded /--></Image>
      <ImageType><!-- String / jpeg,png or gif/--></ImageType>
      <ImageUrl><!-- Image Url for external Import /--></ImageUrl>
    </Image>
  </Images>
</Travity>

...