<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:element name="huoneistot">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="huoneisto" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="huoneiden_lkm" type="xs:unsignedByte"/>
							<xs:element name="koko" type="xs:decimal"/>
							<xs:element name="sijainti">
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="kaupunginosa" type="xs:string" use="required"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<xs:element name="hinta" type="xs:decimal"/>
							<xs:element name="kuvaus" type="xs:string" minOccurs="0"/>
						</xs:sequence>
						<xs:attribute name="myyja" type="xs:string" use="required"/>
						<xs:attribute name="osoite" type="xs:string" use="required"/>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
