Appendix A: Data structure

Legend

Style
Description
element
Standard element (definition)
element
Container element (definition)
element
Repeatable element (definition)
<element>
Standard element container (reference)
{element}
Repeatable element container (reference)
[attribute]
Element attribute

Enumerations

feedType
Product
Availability
Itinerary
TripNote
brand
Intrepid
currency
aud
cad
eur
gbp
nzd
usd
chf
zar
paxType
adult
child
infant
productVersionType
landOnly
flightInclusive
roomType
single
twinShare
productType
groupAdventure
independent
shortBreakAdventure
variableRoomType

Appendix B: Code samples

wget

The command line utility wget can be used to request an XML feed and write the response directly to a file on disk. The following command line retrieves the latest version of Intrepid’s Product feed and writes it to a file called “Products.xml”.

wget --output-document="Products.xml"
"https://api.peakadventuretravel.com/Feed/FeedService.svc/Product/Intrepid/1/269E38DC-8G7B-5C82-B7FE-056EDDB5E729"

C#

The .NET Framework’s XDocument class allows retrieval of a feed with one line of code. The returned XDocument object can then be traversed using its methods. The following line of C# code retrieves the latest version of Intrepid’s Availability feed and saves it in the XDocument object called “document”.

var document = System.Xml.Linq.XDocument.Load("https://api.peakadventuretravel.com/Feed/FeedService.svc/Availability/Intrepid/1/269E38DC-8G7B-5C82-B7FE-056EDDB5E729");