Schema Name: CustodyTicket.xsd
Target Namespace: http://www.api.org/pidXML
Documentation:
CustodyTicket American Petroleum Institute (API), Petroleum Industry Data Exchange (PIDX) 2006 1.2 CustodyTicket element serves as the root node for PIDX transactions.
Collapse XSD Schema Code:

<schema targetNamespace="http://www.api.org/pidXML" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:pidx="http://www.api.org/pidXML" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.2">
	<annotation>
		<documentation>
			<schemaName>CustodyTicket</schemaName>
			<copyright>American Petroleum Institute (API), Petroleum Industry Data Exchange (PIDX) 2006</copyright>
			<schemaVersion>1.2</schemaVersion>
			<description>CustodyTicket element serves as the root node for PIDX transactions.</description>
		</documentation>
	</annotation>
	<include schemaLocation="PIDXLib.xsd"/>
	<element name="CustodyTicket">
		<complexType>
			<sequence>
				<element ref="pidx:CustodyTicketProperties"/>
				<element ref="pidx:CustodyTicketDetails"/>
				<element ref="pidx:CustodyTicketSummary"/>
			</sequence>
			<attribute ref="pidx:documentIdentifier" use="required"/>
			<attribute ref="pidx:transactionPurposeIndicator" use="required"/>
			<attribute ref="pidx:version" use="optional"/>
		</complexType>
	</element>
	<element name="CustodyTicketDetails">
		<complexType>
			<sequence>
				<element ref="pidx:CustodyTicketLineItem" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<element name="CustodyTicketLineItem">
		<complexType>
			<sequence>
				<element ref="pidx:LineItemNumber"/>
				<element ref="pidx:LineItemInformation"/>
				<element ref="pidx:LineItemNetQuantity"/>
				<element ref="pidx:LineItemGrossQuantity"/>
				<element ref="pidx:LineItemWaterQuantity" minOccurs="0"/>
				<element ref="pidx:LineItemAdditive" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:PipelineLineNumber" minOccurs="0"/>
				<element ref="pidx:LineItemTankNumber" minOccurs="0"/>
				<element ref="pidx:LineItemMeasures" minOccurs="0"/>
				<element ref="pidx:CommodityCode" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:PurchaseOrderLineItemNumber" minOccurs="0"/>
				<element ref="pidx:PurchaseOrderInformation" minOccurs="0"/>
				<element ref="pidx:CustodyLocationInformation" minOccurs="0"/>
				<element ref="pidx:CountryOfOrigin" minOccurs="0"/>
				<element ref="pidx:CountryOfFinalDestination" minOccurs="0"/>
				<element ref="pidx:FinalDestinationLocationInformation" minOccurs="0"/>
				<element ref="pidx:SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:Attachment" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:Comment" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<element name="CustodyTicketProperties">
		<complexType>
			<sequence>
				<element ref="pidx:CustodyTicketInformation"/>
				<element ref="pidx:PartnerInformation" minOccurs="2" maxOccurs="unbounded"/>
				<element ref="pidx:CustodyTransferInformation"/>
				<element ref="pidx:PurchaseOrderInformation" minOccurs="0"/>
				<element ref="pidx:PurchaseOrderLineItemNumber" minOccurs="0"/>
				<element ref="pidx:CustodyLocationInformation" minOccurs="0"/>
				<element ref="pidx:CountryOfOrigin" minOccurs="0"/>
				<element ref="pidx:CountryOfFinalDestination" minOccurs="0"/>
				<element ref="pidx:LanguageCode" minOccurs="0"/>
				<element ref="pidx:ModeOfTransportation" minOccurs="0"/>
				<element ref="pidx:SpecialInstructions" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:ReferenceInformation" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:Attachment" minOccurs="0" maxOccurs="unbounded"/>
				<element ref="pidx:Comment" minOccurs="0"/>
				<element ref="pidx:CustodyTicketTimeLog" minOccurs="0"/>
			</sequence>
		</complexType>
	</element>
	<element name="CustodyTicketSummary">
		<complexType>
			<sequence>
				<element ref="pidx:TotalLineItems"/>
			</sequence>
		</complexType>
	</element>
</schema>
Collapse Elements: