<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">	<xsd:annotation>		<xsd:documentation>This schema file is part of the aseXML schema set, and is subject to the terms and conditions that are detailed in the aseXML_r*.xsd schema file with which this file is used</xsd:documentation>	</xsd:annotation>	<xsd:annotation>		<xsd:documentation>Purpose - Defines the common types used by both NOS Booking and NOS Equipment transactions</xsd:documentation>	</xsd:annotation>	<xsd:simpleType name="NOSOperationType">		<xsd:annotation>			<xsd:documentation>Used to distinguish between submit, resubmit and withdraw of NOS data</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:enumeration value="Submit"/>			<xsd:enumeration value="Resubmit"/>			<xsd:enumeration value="Withdraw"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="NOSInfoType">		<xsd:annotation>			<xsd:documentation>Used to distinguish between submit, resubmit and withdraw of NOS data</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:enumeration value="Booking Response"/>			<xsd:enumeration value="Equipment Response"/>			<xsd:enumeration value="Notification"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="NOSUserIdType">		<xsd:annotation>			<xsd:documentation>Common definition for user id fields through out NOS schema structures</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:whiteSpace value="collapse"/>			<xsd:maxLength value="128"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumReasonVarPlanActualType">		<xsd:annotation>			<xsd:documentation>Enumeration of possible reasons an outage planned and actual times may vary</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="30"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="Not Supplied"/>			<xsd:enumeration value="Security Requirement"/>			<xsd:enumeration value="System Conditions"/>			<xsd:enumeration value="Weather"/>			<xsd:enumeration value="Resource Problems"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumBookingElementServiceAffectedType">		<xsd:annotation>			<xsd:documentation>Enumeration of possible services affected by a Booking.</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="30"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="HV plant"/>			<xsd:enumeration value="HV A/R OFF"/>			<xsd:enumeration value="HV trip &amp; A/R test"/>			<xsd:enumeration value="HV plant protection+trip test"/>			<xsd:enumeration value="HV plant protection"/>			<xsd:enumeration value="System Protection"/>			<xsd:enumeration value="UV control scheme"/>			<xsd:enumeration value="UF load shed scheme"/>			<xsd:enumeration value="Overload scheme"/>			<xsd:enumeration value="DC link scheme"/>			<xsd:enumeration value="Other control scheme"/>			<xsd:enumeration value="Voice"/>			<xsd:enumeration value="Data &amp; controls"/>			<xsd:enumeration value="AGC controls"/>			<xsd:enumeration value="Other equipment"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumCompanyNoteType">		<xsd:annotation>			<xsd:documentation>Company Note type is used by both booking and outage notes. The word Company was used in the name to avoid confusion with Assessment note type. </xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="40"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="Effect On System / Work Details"/>			<xsd:enumeration value="Contingency Plan"/>			<xsd:enumeration value="Issue Response"/>			<xsd:enumeration value="Pre-Requisite Switching"/>			<xsd:enumeration value="Limit Equation Data"/>			<xsd:enumeration value="Isolation Points"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumReasonType">		<xsd:annotation>			<xsd:documentation>Enumeration of possible RIEMNS compliant outage reasons</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="40"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="HV equipt maintenance"/>			<xsd:enumeration value="Secondary equipt maintenance"/>			<xsd:enumeration value="HV equipt commissioning"/>			<xsd:enumeration value="Secondary equipt commissioning"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumResubmitReasonType">		<xsd:annotation>			<xsd:documentation>Enumeration of possible reason for resubmission or withdrawal of an outage</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="40"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="Not Supplied"/>			<xsd:enumeration value="Information Update"/>			<xsd:enumeration value="Optimising Availability"/>			<xsd:enumeration value="Environ Hazards"/>			<xsd:enumeration value="Resource Problems"/>			<xsd:enumeration value="NEMMCO Request"/>			<xsd:enumeration value="System Incident"/>			<xsd:enumeration value="Weather"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumCertaintyType">		<xsd:annotation>			<xsd:documentation>Enumeration of possible RIEMNS compliant booking certainty</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="40"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="Outage scheduled"/>			<xsd:enumeration value="System security assessed"/>			<xsd:enumeration value="Outage confirmed"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumScopeOfWorkType">		<xsd:annotation>			<xsd:documentation>Enumeration of possible RIEMNS compliant scopes of work for a booking</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="25"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="Line"/>			<xsd:enumeration value="Substn"/>			<xsd:enumeration value="Line/Substn"/>			<xsd:enumeration value="Live Line"/>			<xsd:enumeration value="Live Substn"/>			<xsd:enumeration value="Live Line/Substn"/>			<xsd:enumeration value="Protection"/>			<xsd:enumeration value="SCADA"/>			<xsd:enumeration value="Communications"/>			<xsd:enumeration value="Other secondary equipt"/>			<xsd:enumeration value="Auto Control Scheme"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumOutageStatusType">		<xsd:annotation>			<xsd:documentation>Enumeration of statuses that can be assigned to an outage</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="20"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="SUBMIT"/>			<xsd:enumeration value="RESUBMIT"/>			<xsd:enumeration value="MTLTP"/>			<xsd:enumeration value="STLTP"/>			<xsd:enumeration value="PDLTP"/>			<xsd:enumeration value="PTP"/>			<xsd:enumeration value="PTR"/>			<xsd:enumeration value="COMPLETE"/>			<xsd:enumeration value="UTP"/>			<xsd:enumeration value="WD REQ"/>			<xsd:enumeration value="WDRAWN"/>			<xsd:enumeration value="INFO"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumAssessmentIssueType">		<xsd:annotation>			<xsd:documentation>Enumeration of Assessment Issue catagories</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="20"/>			<xsd:whiteSpace value="collapse"/>			<xsd:enumeration value="Constraint Required"/>			<xsd:enumeration value="Contingency"/>			<xsd:enumeration value="Ratings"/>			<xsd:enumeration value="General"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="EnumAssessmentNoteType">		<xsd:annotation>			<xsd:documentation>Enumeration of Assessment Note catagories</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:whiteSpace value="collapse"/>			<xsd:maxLength value="40"/>			<xsd:enumeration value="Condition of Approval"/>			<xsd:enumeration value="Constraint Information"/>			<xsd:enumeration value="General"/>			<xsd:enumeration value="Market Notice"/>			<xsd:enumeration value="Network Analysis"/>			<xsd:enumeration value="Security Requirement"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="CompanyElementIdType">		<xsd:annotation>			<xsd:documentation>The ID (set by Company (TNSP)) of the equipment involved in the booking</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="45"/>			<xsd:minLength value="1"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="CompanyOutageIdType">		<xsd:annotation>			<xsd:documentation>The ID (set by Company (TNSP)) of the submitted outage</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="20"/>			<xsd:minLength value="1"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="CompanyBookingIdType">		<xsd:annotation>			<xsd:documentation>The ID (set by Company (TNSP)) of the submitted booking</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="20"/>			<xsd:minLength value="1"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="CompanyNoteIdType">		<xsd:annotation>			<xsd:documentation>The ID (set by Company (TNSP)) of the submitted note</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="20"/>			<xsd:minLength value="1"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="NEMMCOIssueIdType">		<xsd:annotation>			<xsd:documentation>The ID (set by NEMMCO) of a issue</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:int"/>	</xsd:simpleType>	<xsd:simpleType name="CompanyRefCodeType">		<xsd:annotation>			<xsd:documentation>Common definition of a company provided booking reference (display only)</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:string">			<xsd:maxLength value="20"/>			<xsd:minLength value="1"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:simpleType name="NOSVoltage">		<xsd:annotation>			<xsd:documentation>Common voltage field definition</xsd:documentation>		</xsd:annotation>		<xsd:restriction base="xsd:decimal">			<xsd:totalDigits value="5"/>			<xsd:fractionDigits value="1"/>		</xsd:restriction>	</xsd:simpleType>	<xsd:complexType name="NoteType">		<xsd:annotation>			<xsd:documentation>Standard NOS note. A note must have a PlainText and/or a FileAttach. </xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="PlainText" minOccurs="0">				<xsd:annotation>					<xsd:documentation>The note as plain text</xsd:documentation>				</xsd:annotation>				<xsd:simpleType>					<xsd:restriction base="xsd:string">						<xsd:whiteSpace value="preserve"/>						<xsd:minLength value="1"/>					</xsd:restriction>				</xsd:simpleType>			</xsd:element>			<xsd:element name="FileName" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Required if file attachment included in note.</xsd:documentation>				</xsd:annotation>				<xsd:simpleType>					<xsd:restriction base="xsd:string">						<xsd:maxLength value="255"/>						<xsd:whiteSpace value="preserve"/>						<xsd:minLength value="1"/>					</xsd:restriction>				</xsd:simpleType>			</xsd:element>			<xsd:element name="FileAttach" type="xsd:base64Binary" minOccurs="0">				<xsd:annotation>					<xsd:documentation>A single file attachment</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="CreatedBy" type="NOSUserIdType" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Set by NEMMCO</xsd:documentation>				</xsd:annotation>			</xsd:element>			<xsd:element name="CreatedOn" type="xsd:dateTime" minOccurs="0">				<xsd:annotation>					<xsd:documentation>Set by NEMMCO</xsd:documentation>				</xsd:annotation>			</xsd:element>		</xsd:sequence>	</xsd:complexType>	<xsd:complexType name="NOSErrorFieldType">		<xsd:annotation>			<xsd:documentation>Which fields in the booking/equipment submission relate to the error</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="Name" type="xsd:string"/>			<xsd:element name="Value" type="xsd:string" minOccurs="0"/>		</xsd:sequence>		<xsd:attribute name="valueType" use="required">			<xsd:simpleType>				<xsd:restriction base="xsd:string">					<xsd:enumeration value="string"/>					<xsd:enumeration value="integer"/>					<xsd:enumeration value="float"/>					<xsd:enumeration value="date"/>					<xsd:enumeration value="boolean"/>					<xsd:enumeration value="unavailable"/>				</xsd:restriction>			</xsd:simpleType>		</xsd:attribute>	</xsd:complexType>	<xsd:complexType name="NOSErrorType">		<xsd:annotation>			<xsd:documentation>Generic NOS error relating to a booking/equipment submission</xsd:documentation>		</xsd:annotation>		<xsd:sequence>			<xsd:element name="Code" type="EventCode"/>			<xsd:element name="Message">				<xsd:simpleType>					<xsd:restriction base="xsd:string">						<xsd:minLength value="1"/>						<xsd:maxLength value="500"/>						<xsd:whiteSpace value="collapse"/>					</xsd:restriction>				</xsd:simpleType>			</xsd:element>			<xsd:element name="ErrorField" type="NOSErrorFieldType" minOccurs="0" maxOccurs="unbounded"/>		</xsd:sequence>	</xsd:complexType></xsd:schema>