<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas.softwares@procergs.rs.gov.br (PROCERGS) -->
<xs:schema xmlns="http://www.portalfiscal.inf.br/mdfe" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/mdfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="tiposGeralMDFe_v3.00.xsd"/>
	<xs:element name="ferrov">
		<xs:annotation>
			<xs:documentation>Informações do modal Ferroviário</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="trem">
					<xs:annotation>
						<xs:documentation>Informações da composição do trem</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="xPref">
								<xs:annotation>
									<xs:documentation>Prefixo do Trem</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="TString">
										<xs:minLength value="1"/>
										<xs:maxLength value="10"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="dhTrem" type="TDateTimeUTC" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Data e hora de liberação do trem na origem</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="xOri">
								<xs:annotation>
									<xs:documentation>Origem do Trem</xs:documentation>
									<xs:documentation>Sigla da estação de origem</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="TString">
										<xs:minLength value="1"/>
										<xs:maxLength value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="xDest">
								<xs:annotation>
									<xs:documentation>Destino do Trem</xs:documentation>
									<xs:documentation>Sigla da estação de destino</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="TString">
										<xs:minLength value="1"/>
										<xs:maxLength value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="qVag">
								<xs:annotation>
									<xs:documentation>Quantidade de vagões carregados</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:pattern value="[1-9]{1}[0-9]{0,2}"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="vag" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>informações dos Vagões</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="pesoBC" type="TDec_0303">
								<xs:annotation>
									<xs:documentation>Peso Base de Cálculo de Frete em Toneladas</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="pesoR" type="TDec_0303">
								<xs:annotation>
									<xs:documentation>Peso Real em Toneladas</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="tpVag" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Tipo de Vagão</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="TString">
										<xs:length value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="serie">
								<xs:annotation>
									<xs:documentation>Serie de Identificação do vagão</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="TString">
										<xs:length value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="nVag">
								<xs:annotation>
									<xs:documentation>Número de Identificação do vagão</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:whiteSpace value="preserve"/>
										<xs:minLength value="1"/>
										<xs:maxLength value="8"/>
										<xs:pattern value="[1-9]{1}[0-9]{0,7}"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="nSeq" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Sequencia do vagão na composição</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:whiteSpace value="preserve"/>
										<xs:pattern value="[1-9]{1}[0-9]{0,2}"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="TU">
								<xs:annotation>
									<xs:documentation>Tonelada Útil</xs:documentation>
									<xs:documentation>Unidade de peso referente à carga útil (apenas o peso da carga transportada), expressa em toneladas.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="TDec_0302_0303"/>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
