<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2016 (x64) (http://www.altova.com) by Emmanuel Pesenti (DILA (Direction de l'Information Légale et Administrative)) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="https://echanges.dila.gouv.fr/schemabook/lib/DilaType_v003.xsd"/>
	<xs:complexType name="DilaGestion">
		<xs:annotation>
			<xs:documentation>Informations de gestion propres DILA</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:choice>
				<xs:element name="numeroRG" type="xs:string">
					<xs:annotation>
						<xs:documentation>Numéro d'affaire</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="numeroIdentification">
					<xs:annotation>
						<xs:documentation>RCS N° d'identification au format NNN NNN NNN</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:length value="11"/>
							<xs:pattern value="\d{3} \d{3} \d{3}"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="nonInscrit" type="xs:string"/>
			</xs:choice>
			<xs:choice minOccurs="0">
				<xs:element name="nom" type="xs:string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Nom</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="denomination" type="xs:string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>denomination</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="denominationEIRL" type="xs:string" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Dénomination EIRL</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="EJ" type="xs:string" minOccurs="0" maxOccurs="50">
				<xs:annotation>
					<xs:documentation xml:lang="fr">Engagement juridique</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Impecuniosite" type="xs:string" default="N">
				<xs:annotation>
					<xs:documentation xml:lang="fr">Enumération :O/N par défaut N</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:sequence minOccurs="0">
				<xs:element name="dateOrdonnance" type="xs:date">
					<xs:annotation>
						<xs:documentation>Note (P1.12)</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="RefOrdonnance" type="xs:string">
					<xs:annotation>
						<xs:documentation>Référence de l'ordonance -Note (P1.12)</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:sequence>
			<xs:element name="TypeAvisArticle" type="xs:string" default="N" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="fr">Référence produit (P1.01) - Entité données facture - Ligne</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:choice>
				<xs:element name="Annonce">
					<xs:annotation>
						<xs:documentation xml:lang="fr">Annonce initiale O si choisi</xs:documentation>
					</xs:annotation>
					<xs:simpleType>
						<xs:restriction base="xs:string">
							<xs:enumeration value="O"/>
						</xs:restriction>
					</xs:simpleType>
				</xs:element>
				<xs:element name="Rectificatif" type="xs:string">
					<xs:annotation>
						<xs:documentation xml:lang="fr">Annonce Rectificative O si choisi</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="Annulation" type="xs:string">
					<xs:annotation>
						<xs:documentation xml:lang="fr">Annonce Annulation O si choisi</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="StatutQualite" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Information permettant d'identifier les autoentrepreneurs (non-publiée)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Payant" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="fr">Enumération :O</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Public" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="fr">Enumération : O</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="dateDepotAvis" type="xs:date" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Date de dépôt de l'avis au greffe(format AAAA-MM-JJ) </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="numeroGreffe" type="xs:int" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="fr">Code Greffe qui a procédé à l'avis - A transmettre dans le fichier Retour</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="tribunal" type="Tribunal" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Tribunal qui a procédé à l'avis</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="emetteurTransmission" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="fr">Emetteur transmission -  de type NomGroupement_Type (Enumération)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="MandataireDILA" type="MandataireDilaGestion" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
