1. XML данных

Структура XML, который заключается в теги <FormData></FormData>.

Структура тега <FormData></FormData> соответствует XSD-схеме, представленной ниже:

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dc="docore"

targetNamespace="http://smev.gosuslugi.ru/request/fed/rev120528"

elementFormDefault="qualified">

<xs:import namespace="docore" schemaLocation="docore.xsd"/>

<xs:element name="Data">

<xs:complexType>

<xs:sequence>

<xs:element name="FormData">

<xs:complexType>

<xs:choice>

<xs:element name=

"registrationIPData"form="unqualified">

<xs:complexType>

<xs:complexContent>

<xs:extension

base="dc:BaseIpData">

<xs:sequence>

<xs:group

ref="dc:AdditionalIpData" minOccurs="0"/>

<xs:element name="dangerObjects"

type="dc:RegDangerObject" form="unqualified"

maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

</xs:element>

<xs:element name="registrationULData"

form="unqualified">

<xs:complexType>

<xs:complexContent>

<xs:extension

base="dc:BaseUlData">

<xs:sequence>

<xs:group

ref="dc:AdditionalUlData" minOccurs="0"/>

<xs:element name="dangerObjects"

type="dc:RegDangerObject" form="unqualified"

maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

</xs:element>

<xs:element name="removeDOIPData"

form="unqualified">

<xs:complexType>

<xs:complexContent>

<xs:extension

base="dc:BaseIpData">

<xs:sequence>

<xs:element name="removeReasonNum" type="xs:int"

form="unqualified"/>

<xs:element name="dangerObjects"

type="dc:RemoveDangerObject" form="unqualified"

maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

</xs:element>

<xs:element name="removeDOULData"

form="unqualified">

<xs:complexType>

<xs:complexContent>

<xs:extension

base="dc:BaseUlData">

<xs:sequence>

<xs:element name="removeReasonNum" type="xs:int"

form="unqualified"/>

<xs:element name="dangerObjects"

type="dc:RemoveDangerObject" form="unqualified"

maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

</xs:element>

<xs:element name="dOChangeIPData"

form="unqualified">

<xs:complexType>

<xs:complexContent>

<xs:extension

base="dc:BaseIpData">

<xs:sequence>

<xs:element name="dangerObjects"

type="dc:UpdDangerObject" form="unqualified"

maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

</xs:element>

<xs:element name="dOChangeULData"

form="unqualified">

<xs:complexType>

<xs:complexContent>

<xs:extension

base="dc:BaseUlData">

<xs:sequence>

<xs:element name="dangerObjects"

type="dc:UpdDangerObject" form="unqualified"

maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

</xs:element>

</xs:choice>

</xs:complexType>

</xs:element>

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:schema>

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="docore"

targetNamespace="docore">

<xs:import schemaLocation="core.xsd"/>

<xs:complexType name="BaseUlData">

<xs:sequence>

<xs:element name="terOrgNum" type="xs:int"

form="unqualified"/>

<xs:element name="organization" type="ns1:organization"

form="unqualified"/>

<xs:element name="eResponse" type="xs:boolean"

form="unqualified"/>

<xs:element name="postResponse" type="xs:boolean"

form="unqualified"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="BaseIpData">

<xs:sequence>

<xs:element name="terOrgNum" type="xs:int"

form="unqualified"/>

<xs:element name="ipPerson" type="ns1:ipPerson"

form="unqualified"/>

<xs:element name="eResponse" type="xs:boolean"

form="unqualified"/>

<xs:element name="postResponse" type="xs:boolean"

form="unqualified"/>

</xs:sequence>

</xs:complexType>

<xs:group name="AdditionalUlData">

<xs:sequence>

<xs:element name="applicant" type="applicant"

form="unqualified"/>

<xs:element name="formNum" type="xs:int"

form="unqualified"/>

<xs:element name="okatoCode" type="xs:string"

form="unqualified"/>

<xs:element name="okpo" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="okogu" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="address" type="address"

form="unqualified"/>

<xs:element name="faxes" type="contactPhone"

form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="phones" type="contactPhone"

form="unqualified" maxOccurs="unbounded"/>

<xs:element name="mails" type="xs:string"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:group>

<xs:group name="AdditionalIpData">

<xs:sequence>

<xs:element name="docData" type="ns1:personDocData"

form="unqualified"/>

<xs:element name="okatoCode" type="xs:string"

form="unqualified"/>

<xs:element name="address" type="address"

form="unqualified"/>

<xs:element name="faxes" type="contactPhone"

form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="phones" type="contactPhone"

form="unqualified" maxOccurs="unbounded"/>

<xs:element name="mails" type="xs:string"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:group>

<xs:complexType name="organization">

<xs:sequence>

<xs:element name="name" type="xs:string"

form="unqualified"/>

<xs:element name="shortName" type="xs:string"

form="unqualified"/>

<xs:element name="tradeName" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="inn" type="xs:string"

form="unqualified"/>

<xs:element name="ogrn" type="xs:string"

form="unqualified"/>

<xs:element name="kpp" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="okopf" type="xs:string"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="ipPerson">

<xs:sequence>

<xs:element name="firstName" type="xs:string"

form="unqualified"/>

<xs:element name="middleName" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="lastName" type="xs:string"

form="unqualified"/>

<xs:element name="inn" type="xs:string"

form="unqualified"/>

<xs:element name="ogrnip" type="xs:string"

form="unqualified"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="personDocData">

<xs:sequence>

<xs:element name="docTypeNum" type="xs:int"

form="unqualified"/>

<xs:element name="docSerial" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="docNum" type="xs:string"

form="unqualified"/>

<xs:element name="docDate" type="xs:date"

form="unqualified"/>

<xs:element name="docDept" type="xs:string"

form="unqualified"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="docInfo">

<xs:sequence>

<xs:element name="docType" type="xs:int"

form="unqualified" minOccurs="0"/>

<xs:element name="docName" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="docNum" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="startDate" type="xs:date"

form="unqualified" minOccurs="0"/>

<xs:element name="validityPeriod" type="xs:int"

form="unqualified" minOccurs="0"/>

<xs:element name="personName" type="xs:string"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="dangerObject">

<xs:sequence>

<xs:element name="doTypeName" type="xs:int"

form="unqualified"/>

<xs:element name="doTypeNameDetail" type="xs:string"

form="unqualified"/>

<xs:element name="doAddress" type="address"

form="unqualified"/>

<xs:element name="okatoCode" type="xs:string"

form="unqualified"/>

<xs:element name="dangerIndicationCodes" type="xs:string"

form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="dangerClass" type="xs:int"

form="unqualified"/>

<xs:element name="objTypeNum" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="dangerClassFactor" type="xs:int"

form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="activityTypeCodes" type="xs:int"

form="unqualified" maxOccurs="unbounded"/>

<xs:element name="dangerTypeNum" type="xs:int"

form="unqualified"/>

<xs:element name="personalCount" type="xs:int"

form="unqualified" minOccurs="0"/>

<xs:element name="commissioningYear" type="xs:int"

form="unqualified"

minOccurs="0"/>

<xs:element name="rentInfo" type="ns1:rentInfo"

form="unqualified" minOccurs="0"/>

<xs:element name="techDevices" type="ns1:techDevice"

form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="dangerSubstances"

type="ns1:dangerSubstance" form="unqualified" minOccurs="0"

maxOccurs="unbounded"/>

<xs:element name="division" type="ns1:division"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="RegDangerObject">

<xs:complexContent>

<xs:extension base="ns1:dangerObject">

<xs:sequence>

<xs:element name="docInfo" type="ns1:docInfo"

form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="identifDocName"

type="xs:string" form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="dangerClassAddFactors"

type="xs:string" form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="dangerClassLocFactors"

type="xs:string" form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

<xs:complexType name="UpdDangerObject">

<xs:complexContent>

<xs:extension base="ns1:dangerObject">

<xs:sequence>

<xs:element name="doRegNum" type="xs:string"

form="unqualified"/>

<xs:element name="dangerClassAddFactors"

type="xs:string" form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="dangerClassLocFactors"

type="xs:string" form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

</xs:sequence>

</xs:extension>

</xs:complexContent>

</xs:complexType>

<xs:complexType name="RemoveDangerObject">

<xs:sequence>

<xs:element name="doRegNum" type="xs:string"

form="unqualified"/>

<xs:element name="removeFrom" type="xs:date"

form="unqualified" minOccurs="0"/>

<xs:element name="removeTo" type="xs:date"

form="unqualified" minOccurs="0"/>

<xs:element name="removeReasonDesc" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="division" type="ns1:division"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="division">

<xs:sequence>

<xs:choice>

<xs:sequence>

<xs:element name="divName" type="xs:string"

form="unqualified"/>

<xs:element name="divShortName"

type="xs:string" form="unqualified"/>

<xs:element name="divTradeName"

type="xs:string" form="unqualified" minOccurs="0"/>

<xs:element name="divApplicant"

type="applicant" form="unqualified"/>

</xs:sequence>

<xs:sequence>

<xs:element name="firstName" type="xs:string"

form="unqualified"/>

<xs:element name="middleName" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="lastName" type="xs:string"

form="unqualified"/>

<xs:element name="docData"

type="ns1:personDocData" form="unqualified"/>

</xs:sequence>

</xs:choice>

<xs:element name="divAddress" type="address"

form="unqualified"/>

<xs:element name="divFaxes" type="contactPhone"

form="unqualified" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="divPhones" type="contactPhone"

form="unqualified" minOccurs="1" maxOccurs="unbounded"/>

<xs:element name="divMails" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="kpp" type="xs:string" minOccurs="0"

form="unqualified"/>

<xs:element name="okpo" type="xs:string" minOccurs="0"

form="unqualified"/>

<xs:element name="okogu" type="xs:string" minOccurs="0"

form="unqualified"/>

<xs:element name="okato" type="xs:string" minOccurs="0"

form="unqualified"/>

<xs:element name="terOrgNum" type="xs:int" minOccurs="0"

form="unqualified"/>

<xs:element name="okopf" type="xs:string" minOccurs="0"

form="unqualified"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="techDevice">

<xs:sequence>

<xs:element name="tdMark" type="xs:string"

form="unqualified"/>

<xs:element name="tdName" type="xs:string"

form="unqualified"/>

<xs:element name="tdRegNum" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="tdFactoryNum" type="xs:string"

form="unqualified"/>

<xs:element name="tdCharacteristic" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="tdMakingYear" type="xs:int"

form="unqualified" minOccurs="0"/>

<xs:element name="tdCommissioningYear" type="xs:int"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="dangerSubstance">

<xs:sequence>

<xs:element name="dsNum" type="xs:int"

form="unqualified"/>

<xs:element name="dsCharacteristic" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="dsCount" type="xs:double"

form="unqualified"/>

<xs:element name="dsMeasureUnit" type="xs:long"

form="unqualified"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="rentInfo">

<xs:sequence>

<xs:element name="renter" type="xs:string"/>

<xs:element name="ogrn" type="xs:string"/>

<xs:element name="inn" type="xs:string"/>

<xs:element name="rentFrom" type="xs:date"/>

<xs:element name="rentTo" type="xs:date"/>

</xs:sequence>

</xs:complexType>

</xs:schema>

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

<xs:complexType name="applicant">

<xs:sequence>

<xs:element name="firstName" type="xs:string"

form="unqualified"/>

<xs:element name="middleName" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="lastName" type="xs:string"

form="unqualified"/>

<xs:element name="position" type="xs:string"

form="unqualified"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="contactPhone">

<xs:all>

<xs:element name="zoneCode" type="xs:string"

form="unqualified"/>

<xs:element name="extNumber" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="zoneNumber" type="xs:string"

form="unqualified"/>

</xs:all>

</xs:complexType>

<xs:complexType name="address">

<xs:sequence>

<xs:element name="postIndex" type="xs:string"

form="unqualified"/>

<xs:element name="fullAddress" type="xs:string"

form="unqualified"/>

<xs:element name="kladr" type="xs:string"

form="unqualified"/>

<xs:element name="house" type="xs:string"

form="unqualified" minOccurs="0"/>

<xs:element name="room" type="xs:string"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="document">

<xs:sequence>

<xs:element name="ID" type="xs:string"

form="unqualified"/>

<xs:element name="pageCount" type="xs:int"

form="unqualified" minOccurs="0"/>

</xs:sequence>

</xs:complexType>

</xs:schema>