<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
	<xs:element name="Map">
		<xs:complexType>
			<xs:sequence>
			
				<!-- MapPoint Element - used to decribe markers on the map -->
				<xs:element name="MapPoint" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							
							<!-- Title of the marker -->
							<xs:element name="title" type="xs:string"/>
							
							<!-- Detail element used to add data to the marker. 
							      Any number of detail elements can be used. -->
							<xs:element name="detail" maxOccurs="unbounded" type="xs:string">
								<xs:complexType>
									<xs:attribute name="name" type="xs:string"/>
								</xs:complexType>
							</xs:element>
							
							<!-- LocationDetails contains a coordinate value for the point 
									in a <coords> element. Space here to add text fields 
									for geocoding if needed (not yet implemented) -->
							<xs:element name="LocationDetails" maxOccurs="1">
								<xs:complexType>
									<xs:sequence>
										<!-- Coords element with lat, long attributes -->
										<xs:element name="coords" maxOccurs="1">
											<xs:complexType>
												<xs:attribute name="lat" type="xs:decimal" use="required"/>
												<xs:attribute name="long" type="xs:decimal" use="required"/>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							
							<!-- Marker icon (optional) -->
							<xs:element name="icon" type="xs:string" maxOccurs="1" minOccurs="0" />

						</xs:sequence>
					</xs:complexType>
				
				</xs:element>
				
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
