MTN.XML Examples

Simple. Organized. Scalable.

Elements

The start tags and end tags that describe the type of data being set. <trails> or </trails> for example.

Atributes

Allow for setting of values within a element start tag, in the past these have been over used in ski data but are very important for some child elements.

XML Declaration

The XML declaration is a processing instruction that identifies the document as being XML and MTN.XML format.

<?xml version='1.0' encoding="UTF-8"?>
<!DOCTYPE MTN.XML Version '1.0'>


Here is a live example of a MTN.XML feed.

Here is a full example feed.

1. Operations

General resort operational details.

<operations  resortStatus='open' openTime='9:00pm' closeTime='10:00pm'  nightOpenTime='4:30pm' totalAcres='500' 
[optionresortdata='xxx']/>t

Attributes


Attribute: "resortStatus"
Values: Open, Closed
Example: resortStatus="Closed"

Attribute: "openTime"
Values: [Standard Time Format I.E. 08:00am]
Example: openTime="10:00am"

Attribute: "closeTime"
Values: [Standard Time Format I.E. 04:00pm]
Example: closeTime="3:30pm"

Attribute: "nightOpenTime"
Values: [Standard Time Format I.E. 06:00pm]
Example: nightOpenTime="6:00pm"

Attribute: "nightCloseTime"
Values: [Standard Time Format I.E. 11:00pm]
Example: nightCloseTime="11:00pm"

Attribute: "totalAcres"
Values: [commercial acres I.E. 75]
Example: totalAcres="750"

2. Current Conditions

All current resort weather and snow conditions are described in the area. The location tag also allows for multiple areas or mountains to be managed. Road conditions are lists towards the bottom.

<currentconditions>
	<resortwide totalAcresOpen='500' [optionresortdata='xxx']/>
		<resortLocations>
			<location  name='Summit' primarySurface='Powder' secondarySurface='Granular'  base='50' baseRange='50-60' stormTotal='1' snowOverNight='2'  snow12Hours='3' snow24Hours='4' snow48Hours='5' snow72Hours='6'  snow4Days='7' snow5Days='8' snow6Days='9' snow7Days='10'  snowSeasonTotal='11' weatherConditions='Clear' temperature='45'  visibility='100' windDirection='NW' windSpeed='20' />
			<location  name='Base' primarySurface='Powder' secondarySurface='Granular'  base='50' stormTotal='1' snowOverNight='2' snow12Hours='3'  snow24Hours='4' snow48Hours='5' snow72Hours='6' snow4Days='7'  snow5Days='8' snow6Days='9' snow7Days='10' snowSeasonTotal='11'  weatherConditions='Clear' temperature='45' visibility='100'  windDirection='NW' windSpeed='20' />
		</resortLocations>
				<roads>
					<road name='i80' status='open' requirements='Chains or 4WD'>Blah blah be careful.</road>
					<road name='Mountain Road' status='open' requirements='Chains on all vehicles'>Black ice, be careful.</road>
					<road name='Service road' status='closed' requirements='Road closed'>No access today, use the main road.</road>
				</roads>
</currentConditions>

2.1 Node: resortwide totalAcresOpen


Attributes

Attribute: "totalAcresOpen" Values: [amount of skiable acreage in whole numbers I.E. 1- 10000000] Example: resortStatus="750 acres"



2.2 Node: ‘resortLocations’


2.2.1 Node: ‘location’


Attributes


Attribute: "name"
Values: [name of reporting area, Summit, Base...]
Example: name="Base"

Attribute: "primarySurface"
Values: Packed Powder, Powder, Hard Pack, Loose Granular, Frozen Granular, Wet Packed, Wet Granular, Wet Snow, Spring Conditions, Windblown, Corn Snow, Icy, Variable Conditions
Example: primarySurface="Packed Powder"

Attribute: "secondarySurface"
Values: [secondary snow type]
Example: secondarySurface="Loose Granular"

Attribute: "base"
Values: [amount of base snow]
Example: base="32"

Attribute: "baseRange"
Values: [range of base snow]
Example: baseRange="32-40"

Attribute: "stormTotal"
Values: [amount of snow last storm cycle]
Example: stormTotal="3"

Attribute: "snowOverNight"
Values: [amount of snow overnight]
Example: snowOverNight="4"

Attribute: "snow12Hours"
Values: [amount of snow last 12 hours
Example: snow12Hours="6"

Attribute: "snow24Hours"
Values: [amount of snow last 24 hours]
Example: snow24Hours="10"

Attribute: "snow48Hours"
Values: [amount of snow last 48 hours]
Example: snow48Hours="14"

Attribute: "snow72Hours"
Values: [amount of snow last 72 hours]
Example: snow72Hours="16"

Attribute: "snow4Days"
Values: [amount of snow last 4 days]
Example: snow4days="16"

Attribute: "snow5Days"
Values: [amount of snow last 5 days]
Example: snow5days="16"

Attribute: "snow7Days"
Values: [amount of snow last 7 days]
Example: snow7days="16"

Attribute: "weatherConditions"
Values: [weather conditions on the resort]
Example:weatherConditions= "clear"

Attribute: "temperature"
Values: [temperature on mountain]
Example: temperature="28"

Attribute: "visibility"
Values: [visbility on mountain (miles/feet)]
Example: visibility="1 mile"

Attribute: "windDirection"
Values: [wind direction N, NNE, NE, ENE, E, ESE, SE, SSE, S, SSW, SW, WSW, W, WNW, NW, NNW,]
Example: visibility="NW"

Attribute: "windSpeed"
Values: [Wind Speed MPH/KPH]
Example: windSpeed=" 15 MPH"



2.3 Node: ‘roads’


Attributes


Attribute: "road name"
Values: [name of the road]
Example: road name = "access road"

Attribute: "status"
Values: [road status]
Example: status = "open"

Attribute: "requirements"
Values: [requirement for driving]
Example: requirements = "chains for all vehicles> exercise extreme caution"



3. Forecast

Forecast details are still under considerations due to robust name and 3rd party reporting

<forecast>
	<day  name='wednesday' high='20' low='10' snowFall='10'  weather='Calm'>Mostly sunny skies. High near 55F. Winds E at 5 to 10  mph.</day>
  	<day  name='thursday' high='20' low='10' snowFall='10'  weather='Calm'>Mostly sunny skies. High near 55F. Winds E at 5 to 10  mph.</day>
	<day  name='friday' high='20' low='10' snowFall='10' weather='Calm'>Mostly  sunny skies. High near 55F. Winds E at 5 to 10 mph.</day>
	<day  name='saturday' high='20' low='10' snowFall='10'  weather='Calm'>Mostly sunny skies. High near 55F. Winds E at 5 to 10  mph.</day>
	<day  name='sunday' high='20' low='10' snowFall='10' weather='Calm'>Mostly  sunny skies. High near 55F. Winds E at 5 to 10 mph.</day>
	<day  name='monday' high='20' low='10' snowFall='10' weather='Calm'>Mostly  sunny skies. High near 55F. Winds E at 5 to 10 mph.</day>
	<day  name='tuesday' high='20' low='10' snowFall='10'  weather='Calm'>Mostly sunny skies. High near 55F. Winds E at 5 to 10  mph.</day>
</forecast>

3.1 Node: ‘day’


Attributes


Attribute: "day name"
Values: [Monday,Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday]
Example: day name = "thursday"

Attribute: "high"
Values: [high forecast temperature]
Example: high = "35"

Attribute: "low"
Values: [low forecast temperature]
Example: low = "17"

Attribute: "snowFall"
Values: [forecast snow fall]
Example: snowFall = "10"

Attribute: "weather"
Values: [forcast weather conditions]
Example: weather = "snow"

Attribute: "comments"
Values: [additional comments]
Example: comments = "gonna be puking out there"

Comments

THese elements can be describe withing specific areas of the mountain.

<comments>
	<comment name='Weather'>Blah Blah</weather>
	<comment name='Parks'>blah blah</parks>
	<comment name='Events'>blah blah</parks>
	<comment name='Whatever you want'>blah blah</parks>
</comments>
            

4.1 Node: ‘comment’


Attributes


Attribute: "comments name"
Values: [additional comments]
Example: comments = "Weather> will be dumping snow all night and blue bird every morning this weelk"

Attribute: "comments name"
Values: [additional comments]
Example: comments = "Parks> will be perfectly groomed"

Attribute: "comments name"
Values: [additional comments]
Example: comments = "Events> reggae fest this weekend"

Attribute: "comments name"
Values: [additional comments]
Example: comments = "Additional> it’s bring a live chicken get a free lift ticket on thursday, bbq to follow" "

Lifts, Trails and Parks

These elements can be describe within specific areas of the mountain.

<facilities>
	<areas>
		<area name='West Basin'>
			<lifts>
				<lift name='Blue Ridge Express' persons='4' type='ExpressQuad' status='closed' nightStatus='open' id='1' />
				<lift name='Suncoast Express' type='MagicCarpet' status='closed' id='2'/>
			</lifts>
					<trails>
						<trail name='Backdraft' status='closed' groomed='yes' snowMaking='no'  featuredTerrain='yes' nightOperation='no' difficulty='novice'  type='downhill' id='1' />
						<trail name='Updraft' status='open' groomed='yes' snowMaking='no'  featuredTerrain='no' nightOperation='no'  difficulty='advancedIntermediate' type='nordic' id='2' />
					</trails>
							<freestyleTerrain>
								<parks>
									<park name='Super Park' difficulty='XL' groomedOrCut='yes' status='open' featuredTerrain='yes' nightOperation='no' id ='1'>
										<feature name='Big Kahuna' difficulty='XL' type='jumpTableTop' id='1' />
										<feature name='RailWay' difficulty='M' type='railDownFlatDown' status='open' groomedOrCut='yes' id='2' />
									</park>
								</parks>
								<pipes>
									<pipe name='Superpipe' difficulty='XL' groomedOrCut='no' status=’open’ featuredTerrain='yes' nightOperation='no' id='1' />
									<pipe name='Pied Piper Pipe' difficulty='M' groomedOrCut='yes' status=’open’ nightOperation='no' id='2'/>
								</pipes>
							</freestyleTerrain>
										<specialTerrain>
											<terrain name='adventurePark1' difficulty='novice' status='open' featuredTerrain='yes' id='1'/>
											<terrain name='Tubing Park' status='closed' featuredTerrain='no' id='2'/>
											<terrain name='Whatever terrain' status='open' featuredTerrain='no' id='3'/>
										</specialTerrain>
		</area>
	</areas>
</facilities>

5.1. Node: ‘areas’


5.1.1 Node: ‘area’


Attributes


Attribute: "name"
Values: [text name]
Example: name="West Basin"



5.1.1.1 Node: ‘lifts’


5.1.1.1.1 Node: ‘lift’


Attributes


Attribute: "name"
Values: [text name]
Example: name="West Basin"

Attribute: "persons"
Values: [number of people per chair]
Example: persons="4"

Attribute: "type"
Values: [text name of chair type]
Example: type="quad"

Attribute: "status"
Values: [lift operation status]
Example: status="open"

Attribute: "nightStatus"
Values: [lift operation status]]
Example: name="West Basin"



5.1.1.2 Node: ‘trails’


5.1.1.2.1 Node: ‘trail’


Attributes


Attribute: "name"
Values: [text name]
Example: name="West Basin"

Attribute: "status"
Values: open, closed
Example: status="open"

Attribute: "groomed"
Values: yes, no
Example: groomed="yes"

Attribute: "snowMaking"
Values: yes, no
Example: snowMaking="yes"

Attribute: "featuredTerrain"
Values: yes, no
Example: featuredTerrain="yes"

Attribute: "nightOperation"
Values: yes, no
Example: nightOperations="yes"

Attribute: "difficulty"
Values: beginner, advancedBeginner, intermediate, advancedIntermediate, advanced, expert
Example: difficulty="advanced"

Attribute: "type"
Values: downhill, nordic
Example: type="downhill"



5.1.1.3 Node: ‘freestyleTerrain’


5.1.1.3.1 Node: ‘parks’


5.1.1.3.1.1 Node: ‘park’


Attributes


Attribute: "name"
Values: [text name of park]
Example: name="Edgewater Super Park"

Attribute: "difficulty"
Values: s, m, l
Example: difficulty="m"

Attribute: "groomedOrCut"
Values: yes, no
Example: groomedOrCut="yes"

Attribute: "status"
Values: open, closed
Example: status="open"

Attribute: "featuredTerrain"
Values: yes, no
Example: featuredTerrain="yes"

Attribute: "nightOperations"
Values: yes, no
Example: nightOperations="yes"



5.1.1.3.1.1.1 Node: ‘feature’


Attributes


Attribute: "name"
Values: [text name of feature]
Example: name="Edgewater Super Park"

Attribute: "difficulty"
Values: s, m, l,
Example: name="Jakes Lady"

Attribute: "type"
Values: [feature type name] {slated for standardization 2.0}
Example: name="jumpTableTop"



5.1.1.3.1 Node: ‘pipes’


5.1.1.3.1.1 Node: ‘pipe’


Attributes


Attribute: "name"
Values: [text name of park]
Example: name="Edgewater Super Park"

Attribute: "difficulty"
Values: s, m, l, xl
Example: difficulty="m"

Attribute: "groomedOrCut"
Values: yes, no
Example: groomedOrCut="yes"

Attribute: "status"
Values: open, closed
Example: status="open"

Attribute: "nightOperations"
Values: yes, no
Example: nightOperations="yes"



5.1.1.4 Node: ‘specialTerrain’


5.1.1.4.1 Node: ‘terrain’


Attributes


Attribute: "name"
Values: [text name of terrain area]
Example: name="Casner Tubing Park"

Attribute: "status"
Values: open, closed
Example: status="open"

Attribute: "featured"
Values: yes, no
Example: featured="yes"