Advert Feed v1.0

myholidaycaravan.co.uk now accepts advert feeds onto the website, meaning listings for caravans currently for sale by other companies may be passed into our system and advertised on our site.

The format for the feed itself is XML and is very simple...

ElementDescriptionRequiredData Type
refThis is the unique reference number for the advertRequiredAll Characters allowed. Max 15 Characters
nameA small descriptive name for the advertRequiredAll Characters allowed. Max 100 Characters
descriptionA full description of the caravan being advertisedRequiredAll Characters allowed. Max 4000 Characters
priceThe price of the caravan being advertisedRequiredNumerical
yearThe build year of the caravan being advertisedOptionalNumerical
dimensionsThe physical dimensions of the caravan being advertisedOptionalAll characters allowed
bedroomsThe number of bedrooms the caravan being advertised containsOptionalNumerical
sleepsThe number of people the caravan being advertised can sleepOptionalNumerical
featuresA pipe-separated (|) list of features of the caravanOptionalAll Characters allowed. Max 2000 Characters
vantypeThe type of the caravan being advertisedOptionalCaravan / Lodge
image1urlThe full URL to the web-ready main image of the caravanOptionalAll Characters allowed. Max 255 Characters
image2urlThe full URL to the web-ready second image of the caravanOptionalAll Characters allowed. Max 255 Characters
image3urlThe full URL to the web-ready third image of the caravanOptionalAll Characters allowed. Max 255 Characters

Please review the latest DTD (right-click --> Save As...) for this XML feed.

Example:

<?xml version="1.0" ?> 
<!DOCTYPE ads SYSTEM "http://www.myholidaycaravan.co.uk/mhc-adsfeed-1.1.2.dtd">

<ads>
	<adlisting>
		<ref>1234</ref>
		<name>Listing One</name>
		<description>The description of the first listing goes</description>
		<price>65,432</price>
		<year>2013</year>
		<dimensions>28x10</dimensions>
		<bedrooms>2</bedrooms>
		<sleeps>6</sleeps>
		<features>Balcony|Air conditioning|Satellite TV</features>
		<vantype>Lodge</vantype>
		<image1url>http://www.website.com/path/to/1234/image1.jpg</image1url>
		<image2url>http://www.website.com/path/to/1234/image2.jpg</image2url>
		<image3url>http://www.website.com/path/to/1234/image2.jpg</image3url>
	</adlisting>
	<adlisting>
		<ref>1235</ref>
		<name>Listing Two</name>
		<description>The description of the second listing goes</description>
		<price>54,321</price>
		<vantype>Caravan</vantype>
		<image1url>http://www.website.com/path/to/1235/image1.jpg</image1url>
	</adlisting>
</ads>	 

 

These XML files are to be hosted on YOUR servers. Our systems will regularly pull the data to retrieve the latest information.

Each park within your group must have it's own XML file containing the listings relevant to that park.

To ensure your XML feed adheres to the DTD, please test using the W3Schools XML Validator (please note that to test your XML against a DTD, you must visit this site using Internet Explorer).