<?xml version = "1.0" encoding = "UTF-8"?>
<schema xmlns = "http://www.w3.org/2000/10/XMLSchema"
	 targetNamespace = "http://www.ipdr.org/namespaces/ipdr"
	 xmlns:ipdr = "http://www.ipdr.org/namespaces/ipdr"
	
	 version = "3.0-A.0"
	 elementFormDefault = "qualified"
	 attributeFormDefault = "unqualified">
	<annotation>
		<documentation>
			Referring to a local copy will normally yield significantly faster performance.
			The name of the master IPDR schema file can either be:

               http://www.ipdr.org/public/ipdrDoc3.0.xsd

          		Alternatively, it can be a local copy of this file.  
		  Please modify the preceding "include schemaLocation" appropriately.  
      		</documentation>
		<documentation>This is the master IPDR schema file for Email</documentation>
	</annotation>
	<include schemaLocation = "http://www.ipdr.org/public/ipdrDoc3.0.xsd"/>
	<element name = "serviceProviderID" type = "string"/>
	<element name = "subscriberId" type = "string"/>
<element name = "userLoginName" type = "string"/>
	<element name = "userLoginLocation" type = "string"/>
	<element name = "providerName" type = "string"/>
	<element name = "providerLocation" type = "string"/>
	<element name = "eventType">
                            	<simpleType>
                            		<restriction base = "string">
				<enumeration value = "Incoming"/>
				<enumeration value = "Outgoing"/>
				<enumeration value = "Storage"/>
			</restriction>
		</simpleType>
	</element>
	<element name = "eventTime" type = "dateTime"/>
	<element name = "size" type = "int"/>
	<element name = "startTime" type = "dateTime"/>
	<element name = "endTime" type = "dateTime"/>
	<element name = "emailSubject" type = "string"/>
	<element name = "emailAddressees" type = "string"/>
	<element name = "numAddressees" type = "int"/>
	<complexType name = "IPDR-EMAIL-Type">
		<complexContent>
			<extension base = "ipdr:IPDRType">
				<sequence>
					<element ref = "ipdr:serviceProviderID"/>
                                                                        <element ref = "ipdr:subscriberId"/>
                                                                        <element ref = "ipdr:userLoginLocation"/>
                                                                        <element ref = "ipdr:userLoginName"/>
                                                                        <element ref = "ipdr:providerName"/>
					<element ref = "ipdr:providerLocation"/>
                                                                        <element ref = "ipdr:eventType"/>
					<element ref = "ipdr:eventTime" minOccurs = "0"/>
					<element ref = "ipdr:emailAddressees" minOccurs = "0"/>
                                                                        <element ref = "ipdr:emailSubject" minOccurs = "0"/>
					<element ref = "ipdr:startTime" minOccurs = "0"/>
					<element ref = "ipdr:endTime" minOccurs = "0"/>
					<element ref = "ipdr:size" minOccurs = "0"/>
					<element ref = "ipdr:numAddressees" minOccurs = "0"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
</schema> 