Generated by
CSDiff on 2002/01/03 4:13 PM<?xml version = "1.0" encoding = "ISO-8859-1"?> <!-- Usage Schema for Ontario v2.0 2001/08/031 2001/12/21 --> <xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema" xmlns = "http://www.oeb.gov.on.ca/" (Item #570) targetNamespace = "http://www.oeb.gov.on.ca/" (Item #570) elementFormDefault="qualified"> <xsd:include schemaLocation = "SimpleTypes.xsd"/> <xsd:include schemaLocation = "CommonTypes.xsd"/> <!-- --> <!-- Usage Main Section --> <!-- --> <xsd:complexType name = "Usage"> <xsd:sequence> <xsd:element name = "ConsumerInformation" type = "ConsumerInformationStandard"/> <xsd:element name = "AccountInformation" type = "AccountInformationUsage"/> <xsd:element name = "ServiceInformation" minOccurs = "1" maxOccurs = "unbounded"> <xsd:complexType> <xsd:sequence> <xsd:choice> <xsd:element name = "UnmeteredInformation" type = "UnmeteredInformationUsage"/> <xsd:element name = "MeteredInformation" type = "MeteredInformationUsage"/> </xsd:choice> </xsd:sequence> <xsd:attribute name = "UsageIndicator" type = "usageIndicator" use = "optional" default = "Ongoing"/> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name = "UsagePurpose" type = "usagePurpose" use = "required"/> <xsd:attribute name = "BillRequired" type = "yesNo" use = "required"/> <xsd:attribute name = "OriginalTransactionReferenceNumber" type = "lengthThirty" use = "optional"/> (Item #600) </xsd:complexType> <!-- --> <!-- Usage Definitions --> <!-- --> <xsd:complexType name = "AccountInformationUsage"> <xsd:sequence> <xsd:element name = "ValidationInformation" type = "ValidationInformationStandard"/> <xsd:element name = "ConsumerAccountNumber" type = "ConsumerAccountNumber" minOccurs = "1" maxOccurs = "2"/> <xsd:element name = "CommodityType" type = "commodityType"/> <xsd:element name = "BillingCycle" type = "BillingCycle" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "ServiceLocationInformation" type = "ServiceLocationInformation"/> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "MeteredInformationUsage"> <xsd:sequence> <xsd:element name = "MeterNumber" type = "MeterNumber"/> <xsd:element name = "MeterCycleNumber" type = "lengthThree" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "DeliveryPoint" type = "lengthThirty" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "DistributionLossFactor" type = "distributionLossFactor"/> <xsd:element name = "ReadingSchedule" type = "lengthThirty" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "UsageInformation" type = "UsageInformationUsage" minOccurs = "1" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name = "ReadStructure" type = "readStructure" use = "required"/> </xsd:complexType> <!-- --> <xsd:complexType name = "UnmeteredInformationUsage"> <xsd:sequence> <xsd:element name = "ServiceType" type = "lengthThirty"/> <xsd:element name = "ServiceId" type = "lengthThirty"/> <xsd:element name = "NumberOfUnits" type = "lengthFive"/> <xsd:element name = "DistributionLossFactor" type = "distributionLossFactor"/> <xsd:element name = "ReadingSchedule" type = "lengthThirty" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "UsageInformation" type = "UsageInformationUsage" minOccurs = "1" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <!-- --> <xsd:complexType name = "UsageInformationUsage"> <xsd:sequence> <xsd:element name = "MeasurementData" minOccurs = "01" maxOccurs = "unbounded"> (Item #586) <xsd:complexType> <xsd:sequence> <xsd:element name = "ServicePeriod" type = "ServicePeriod"/> <xsd:element name = "ReportedIntervalLength" type = "reportedIntervalLength" minOccurs = "0" maxOccurs = "1"/> <xsd:element name = "UsageData" type = "UsageData" minOccurs = "0" maxOccurs = "unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:sequence> <xsd:attribute name = "UnitOfMeasure" type = "unitOfMeasure" use = "required"/> </xsd:complexType> </xsd:schema>