cs_generalAddress.xsd 3.62 KB
<?xml version="1.0"?>
<xsd:schema 
	elementFormDefault="qualified" 
	attributeFormDefault="unqualified" 
	targetNamespace="http://www.witsml.org/schemas/131/addendum/combo" 
	xmlns:witsml="http://www.witsml.org/schemas/131/addendum/combo" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	version="1.3.1">
	<!--                                                         -->
	<!--POSC License Agreement
	This file is distributed under the POSC License Agreement at
	http://www.posc.org/about/license.shtml.
	Use of this file constitutes agreement with the POSC License Agreement.
	-->
	<xsd:include schemaLocation="typ_dataTypes.xsd"/>
	<xsd:include schemaLocation="typ_catalog_New.xsd"/>
	<xsd:include schemaLocation="attgrp_uid.xsd"/>
	<!--                                                         -->
	<xsd:complexType name="cs_generalAddress">
		<xsd:annotation>
			<xsd:documentation>An general address structure. This form is appropriate for 
			most countries. </xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="name" type="witsml:nameString" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The Name line of an address. 
					If missing, use the Name of the business associate.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="street" type="witsml:nameString" maxOccurs="4">
				<xsd:annotation>
					<xsd:documentation>The Street is a generic term for the 
					middle lines of an address. They may be a street
					address, PO Box, Suite number, or any lines that come 
					between the "name" and "city" lines. This may be repeated 
					for up to four, ordered lines.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="city" type="witsml:nameString">
				<xsd:annotation>
					<xsd:documentation>The City for the business associate's 
					address</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:choice minOccurs="0" maxOccurs="1">
				<xsd:annotation>
					<xsd:documentation>The GeneralAddress allows the choice of a 
					State, Province, or County element. It is assumed that 
					different elements would be appropriate in different 
					countries. A user community should choose which element is 
					appropriate in the various countries.</xsd:documentation>
				</xsd:annotation>
				<xsd:element name="state" type="witsml:nameString"/>
				<xsd:element name="province" type="witsml:nameString"/>
				<xsd:element name="county" type="witsml:nameString"/>
			</xsd:choice>
			<xsd:element name="country" type="witsml:nameString" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The Country may be included. Although 
					this is optional, it is probably required for most uses.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="postalCode" type="witsml:kindString" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>A postal code, if appropriate for the country. 
					In the USA this would be the five or nine digit zip code.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="kind" use="optional" type="witsml:AddressKindEnum">
			<xsd:annotation>
				<xsd:documentation>The type of address: mailing, physical, or both.</xsd:documentation>
			</xsd:annotation>
		</xsd:attribute>
		<xsd:attributeGroup ref="witsml:attgrp_uid">
			<xsd:annotation>
				<xsd:documentation>The unique identifier of the recurring element.</xsd:documentation>
			</xsd:annotation>
		</xsd:attributeGroup>
	</xsd:complexType>
	<!--                                                         -->
</xsd:schema>