Compartilhar via


Customization solutions file schema

 

Applies To: Dynamics CRM 2013

The following is the schema definition for an import/export customization file from Microsoft Dynamics CRM. Note that this file includes the following schemas:

For more information, see Package and distribute extensions using solutions. You can find this schema in the SDK\Schemas\CustomizationsSolution.xsd file in the SDK package. Download the Microsoft Dynamics CRM SDK package.

Schema

<?xmlversion="1.0"?>
<xs:schemaxmlns:xs="http://www.w3.org/2001/XMLSchema"
           elementFormDefault="qualified"
           attributeFormDefault="unqualified">
 <xs:includeschemaLocation="isv.config.xsd" />
 <xs:includeschemaLocation="SiteMapType.xsd" />
 <xs:includeschemaLocation="FormXml.xsd" />
 <xs:includeschemaLocation="Fetch.xsd" />
 <xs:simpleTypename="ObjectTypeCodeType">
  <xs:restrictionbase="xs:positiveInteger"></xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="TrueFalseType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="True" />
   <xs:enumerationvalue="False" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="GuidType">
  <xs:annotation>
   <xs:documentationxml:lang="en">
    The representation of a GUID, generally the id of an element.
   </xs:documentation>
  </xs:annotation>
  <xs:restrictionbase="xs:string">
   <xs:patternvalue="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="LengthPositiveInteger">
  <xs:restrictionbase="xs:positiveInteger" />
 </xs:simpleType>
 <xs:simpleTypename="LengthMax">
  <xs:restrictionbase="xs:string">
   <xs:patternvalue="max" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="LengthMinusOne">
  <xs:restrictionbase="xs:string">
   <xs:patternvalue="-1" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="LengthType">
  <xs:unionmemberTypes="LengthPositiveInteger LengthMax LengthMinusOne" />
 </xs:simpleType>
 <xs:simpleTypename="PercentageType">
<xs:restrictionbase="xs:string">
   <xs:patternvalue="^(100|[0-9]{1,2})%$" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="OptionSetEnumType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="picklist" />
   <xs:enumerationvalue="state" />
   <xs:enumerationvalue="status" />
   <xs:enumerationvalue="bit" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="CrmDataType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="virtual" />
   <xs:enumerationvalue="primarykey" />
   <xs:enumerationvalue="uniqueidentifier" />
   <xs:enumerationvalue="char" />
   <xs:enumerationvalue="nchar" />
   <xs:enumerationvalue="varchar" />
   <xs:enumerationvalue="nvarchar" />
   <xs:enumerationvalue="ntext" />
   <xs:enumerationvalue="text" />
   <xs:enumerationvalue="numeric" />
   <xs:enumerationvalue="int" />
   <xs:enumerationvalue="smallint" />
   <xs:enumerationvalue="tinyint" />
   <xs:enumerationvalue="bigint" />
   <xs:enumerationvalue="binary" />
   <xs:enumerationvalue="varbinary" />
   <xs:enumerationvalue="image" />
   <xs:enumerationvalue="float" />
   <xs:enumerationvalue="decimal" />
   <xs:enumerationvalue="real" />
   <xs:enumerationvalue="money" />
   <xs:enumerationvalue="smallmoney" />
   <xs:enumerationvalue="bit" />
   <xs:enumerationvalue="timezone" />
   <xs:enumerationvalue="datetime" />
   <xs:enumerationvalue="smalldatetime" />
   <xs:enumerationvalue="timestamp" />
   <xs:enumerationvalue="lookup" />
   <xs:enumerationvalue="picklist" />
   <xs:enumerationvalue="partylist" />
   <xs:enumerationvalue="customer" />
   <xs:enumerationvalue="owner" />
   <xs:enumerationvalue="state" />
   <xs:enumerationvalue="status" />
   <xs:enumerationvalue="sql_variant" />
   <xs:enumerationvalue="phoneticguide" />
   <xs:enumerationvalue="HierarchyId" />
   <xs:enumerationvalue="managedproperty" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="CrmCascadeSecurityLinkType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="ActiveOnly" />
   <xs:enumerationvalue="Cascade" />
   <xs:enumerationvalue="NoCascade" />
   <xs:enumerationvalue="UserOwned" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="CrmCascadeDeleteLinkType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="Cascade" />
   <xs:enumerationvalue="NoCascade" />
   <xs:enumerationvalue="RemoveLink" />
   <xs:enumerationvalue="Restrict" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="NavPaneDisplayOptionType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="UseCollectionName" />
   <xs:enumerationvalue="UseLabel" />
   <xs:enumerationvalue="DoNotDisplay" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="NavPaneAreaType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="Details" />
   <xs:enumerationvalue="Sales" />
   <xs:enumerationvalue="Service" />
   <xs:enumerationvalue="Marketing" />
   <xs:enumerationvalue="InternetMarketing" />
   <xs:enumerationvalue="ProcessCenter" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="CrmEntityIconType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="GridIcon" />
   <xs:enumerationvalue="NavigationIcon" />
   <xs:enumerationvalue="OutlookShortcutIcon" />
   <xs:enumerationvalue="WatermarkIcon" />
   <xs:enumerationvalue="LargeEntityIcon" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="EntityAttributeNameBaseType">
  <xs:restrictionbase="xs:string">
   <xs:minLengthvalue="1" />
   <xs:maxLengthvalue="50" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="EntityAttributeLocalizedNameBaseType">
  <xs:restrictionbase="xs:string">
   <xs:minLengthvalue="1" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="EntityRelationshipTypeType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="OneToMany" />
   <xs:enumerationvalue="ManyToMany" />
  </xs:restriction>
 </xs:simpleType>
 <xs:complexTypename="EntityRelationshipRolesType">
  <xs:sequence>
   <xs:elementname="EntityRelationshipRole"
               minOccurs="1"
               maxOccurs="2">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="NavPaneDisplayOption"
                  type="NavPaneDisplayOptionType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="NavPaneArea"
                  type="NavPaneAreaType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="NavPaneOrder"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CustomLabels"
                  type="CustomLabelsType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="AssociationRoleOrdinal"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:elementname="LocalizedName"
             type="EntityAttributeLocalizedNameBaseType" />
 <xs:elementname="LocalizedCollectionName"
             type="EntityAttributeLocalizedNameBaseType" />
 <xs:complexTypename="EntityNameType">
  <xs:simpleContent>
   <xs:extensionbase="EntityAttributeNameBaseType">
    <xs:attributename="LocalizedName"
                  type="EntityAttributeLocalizedNameBaseType"
                  use="required" />
   </xs:extension>
  </xs:simpleContent>
 </xs:complexType>
 <xs:complexTypename="LocalizedCollectionNamesType">
  <xs:sequence>
   <xs:elementname="LocalizedCollectionName"
               type="FieldXmlFieldUIType"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="CustomLabelsType">
  <xs:sequence>
   <xs:elementname="CustomLabel"
               type="FieldXmlFieldUIType"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="LookupTypesType">
  <xs:sequence>
   <xs:elementminOccurs="0"
               maxOccurs="unbounded"
               name="LookupType">
    <xs:complexType>
     <xs:simpleContent>
      <xs:extensionbase="xs:integer">
       <xs:attributename="id"
                     type="xs:string"
                     use="required" />
      </xs:extension>
     </xs:simpleContent>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="displaynamestype">
  <xs:sequence>
   <xs:elementname="displayname"
               type="FieldXmlFieldUIType"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="statestype">
  <xs:sequence>
   <xs:elementname="state"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="labels"
                  minOccurs="1"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="label"
                     type="FieldXmlFieldUIType"
                     minOccurs="1"
                     maxOccurs="unbounded" />
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:elementname="Descriptions"
                  type="DescriptionsType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
     <xs:attributename="value"
                   use="required"
                   type="xs:integer" />
     <xs:attributename="defaultstatus"
                   use="required"
                   type="xs:integer" />
     <xs:attributename="invariantname"
                   use="required"
                   type="xs:string" />
     <xs:attributename="addedby"
                   type="xs:string"></xs:attribute>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="statusestype">
  <xs:sequence>
   <xs:elementname="status"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="labels"
                  minOccurs="1"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="label"
                     type="FieldXmlFieldUIType"
                     minOccurs="1"
                     maxOccurs="unbounded" />
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:elementname="Descriptions"
                  type="DescriptionsType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
     <xs:attributename="value"
                   use="required"
                   type="xs:integer" />
     <xs:attributename="state"
                   type="xs:integer" />
     <xs:attributename="defaultstatus"
                   type="xs:integer" />
     <xs:attributename="addedby"
                   type="xs:string"></xs:attribute>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="optionsetstype">
  <xs:sequence>
   <xs:elementname="optionset"
               type="optionsettype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="optionsettype">
  <xs:sequence>
   <xs:elementname="OptionSetType"
               type="OptionSetEnumType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsGlobal"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IntroducedVersion"
               type="VersionType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsCustomizable"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="displaynames"
               type="displaynamestype"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Descriptions"
               type="DescriptionsType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="options"
               type="optionstype"
               minOccurs="0"
               maxOccurs="1"/>
   <xs:elementname="statuses"
               type="statusestype"
               minOccurs="0"
               maxOccurs="1"/>
   <xs:elementname="states"
               type="statestype"
               minOccurs="0"
               maxOccurs="1"/>
  </xs:sequence>
  <xs:attributename="Name"
                use="required"
                type="xs:string" />
  <xs:attributename="localizedName"
                use="optional"
                type="xs:string" />
  <xs:attributename="description"
                use="optional"
                type="xs:string" />
  <xs:attributename="unmodified"
                use="optional"
                type="TrueFalse01Type" />
 </xs:complexType>

 <xs:complexTypename="pluginassembliestype">
  <xs:sequence>
   <xs:elementname="PluginAssembly"
               type="pluginassemblytype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="pluginassemblytype">
  <xs:sequence>
   <xs:elementname="Description"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsolationMode"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SourceType"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Path"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IntroducedVersion"
               type="VersionType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="FileName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
  <xs:elementname="PluginTypes"
               type="plugintypestype"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsHidden"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
  </xs:sequence>
  <xs:attributename="FullName"
                use="required"
                type="xs:string" />
  <xs:attributename="CustomizationLevel"
                use="optional"
                type="xs:integer" />
  <xs:attributename="unmodified"
                use="optional"
                type="TrueFalse01Type" />
 </xs:complexType>

 <xs:complexTypename="plugintypestype">
  <xs:sequence>
   <xs:elementname="PluginType"
               type="plugintypetype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="plugintypetype">
  <xs:sequence>
   <xs:elementname="Description"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="FriendlyName"
               type="xs:string"
               minOccurs="1"
               maxOccurs="1" />
   <xs:elementname="WorkflowActivityGroupName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
  </xs:sequence>
  <xs:attributename="Name"
                use="optional"
                type="xs:string" />
  <xs:attributename="AssemblyQualifiedName"
                use="required"
                type="xs:string" />
 </xs:complexType>

 <xs:complexTypename="sdkmessageprocessingstepstype">
  <xs:sequence>
   <xs:elementname="SdkMessageProcessingStep"
               type="sdkmessageprocessingsteptype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="sdkmessageprocessingsteptype">
  <xs:sequence>
   <xs:elementname="PluginTypeName"
               type="xs:string"
               minOccurs="1"
               maxOccurs="1" />
   <xs:elementname="PrimaryEntity"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SecondaryEntity"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="AsyncAutoDelete"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Configuration"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Description"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="FilteringAttributes"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="ImpersonatingUserIdName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="InvocationSource"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Mode"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Rank"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SdkMessageId"
               type="GuidType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="EventHandler"
               type="GuidType"
               minOccurs="0"
             maxOccurs="1" />
   <xs:elementname="EventHandlerTypeCode"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Stage"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsCustomizable"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsHidden"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SupportedDeployment"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IntroducedVersion"
               type="VersionType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SdkMessageProcessingStepImages"
               type="sdkmessageprocessingstepimagestype"
               minOccurs="0"
               maxOccurs="1" />
  </xs:sequence>
  <xs:attributename="SdkMessageProcessingStepId"
                use="required"
                type="GuidType" />
  <xs:attributename="Name"
                use="optional"
                type="xs:string" />
  <xs:attributename="unmodified"
              use="optional"
                type="TrueFalse01Type" />
 </xs:complexType>

 <xs:complexTypename="sdkmessageprocessingstepimagestype">
  <xs:sequence>
   <xs:elementname="SdkMessageProcessingStepImage"
               type="sdkmessageprocessingstepimagetype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="sdkmessageprocessingstepimagetype">
  <xs:sequence>
   <xs:elementname="Description"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SdkMessageProcessingStepImageId"
               type="GuidType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Attributes"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="EntityAlias"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="ImageType"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="MessagePropertyName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="RelatedAttributeName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsCustomizable"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IntroducedVersion"
               type="VersionType"
               minOccurs="0"
               maxOccurs="1" />
  </xs:sequence>
  <xs:attributename="Name"
                use="optional"
                type="xs:string" />
 </xs:complexType>

 <xs:complexTypename="serviceendpointstype">
  <xs:sequence>
   <xs:elementname="ServiceEndpoint"
               type="serviceendpointtype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="serviceendpointtype">
  <xs:sequence>
   <xs:elementname="ConnectionMode"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Contract"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Description"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Path"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SolutionNamespace"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="UserClaim"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsCustomizable"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IntroducedVersion"
               type="VersionType"
               minOccurs="0"
               maxOccurs="1" />
  </xs:sequence>
  <xs:attributename="ServiceEndpointId"
                use="required"
                type="GuidType" />
  <xs:attributename="Description"
                use="optional"
                type="xs:string" />
  <xs:attributename="Name"
                use="optional"
                type="xs:string" />
  <xs:attributename="unmodified"
                use="optional"
                type="TrueFalse01Type" />

 </xs:complexType>

 <xs:complexTypename="webresourcestype">
  <xs:sequence>
   <xs:elementname="WebResource"
               type="webresourcetype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="webresourcetype">
  <xs:sequence>
   <xs:elementname="WebResourceId"
               type="GuidType"
               minOccurs="1"
               maxOccurs="1" />
   <xs:elementname="Name"
               type="xs:string"
               minOccurs="1"
               maxOccurs="1" />
   <xs:elementname="DisplayName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="Description"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SilverlightVersion"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="LanguageCode"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="WebResourceType"
               type="xs:integer"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IntroducedVersion"
               type="VersionType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsCustomizable"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="CanBeDeleted"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="IsHidden"
               type="TrueFalse01Type"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="FileName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1"/>
  </xs:sequence>
  <xs:attributename="unmodified"
                use="optional"
                type="TrueFalse01Type" />
 </xs:complexType>
 <xs:complexTypename="optionstype">
  <xs:sequence>
   <xs:elementname="option"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="labels"
                  minOccurs="1"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="label"
                     type="FieldXmlFieldUIType"
                     minOccurs="1"
                     maxOccurs="unbounded" />
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:elementname="Descriptions"
                  type="DescriptionsType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
     <xs:attributename="id"
                   type="GuidType" />
     <xs:attributename="value"
                   use="required"
                   type="xs:integer" />
     <xs:attributename="addedby"
                   type="xs:string" />
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:simpleTypename="CrmIdentifier">
  <xs:restrictionbase="xs:string">
   <xs:patternvalue="[a-zA-Z0-9_]+" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="CrmClient">
  <xs:restrictionbase="xs:string">
   <xs:patternvalue="((Outlook|Web|All|OutlookWorkstationClient|OutlookLaptopClient),?)+" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="CrmLicense">
  <xs:restrictionbase="xs:string">
   <xs:patternvalue="((SmallBusiness|Professional|All),?)+" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="CrmPrivilegeId">
  <xs:restrictionbase="xs:string">
   <xs:patternvalue="((Read|Write|Append|AppendTo|Create|Delete|Share|Assign|All|AllowQuickCampaign),?)+" />
  </xs:restriction>
 </xs:simpleType>
 <xs:complexTypename="LookupType">
  <xs:simpleContent>
   <xs:extensionbase="GuidType">
    <xs:attributename="name"
                  type="xs:string" />
    <xs:attributename="dsc"
                  type="xs:nonNegativeInteger" />
   </xs:extension>
  </xs:simpleContent>
 </xs:complexType>
 <xs:elementname="ImportExportXml">
  <xs:complexType>
   <xs:sequence>
    <xs:elementname="Entities"
                type="EntitiesType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="Roles"
                type="RolesType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="Workflows"
                type="WorkflowsType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="FieldSecurityProfiles"
                type="FieldSecurityProfilesType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="Templates"
                type="CrmTemplatesType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="RibbonDiffXml"
                type="RibbonGlobalDiffXmlType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="IsvConfig"
                minOccurs="0"
                maxOccurs="1">
     <xs:complexType>
      <xs:sequence>
       <xs:elementname="configuration"
                   type="IsvConfigurationType"
                   maxOccurs="1" />
      </xs:sequence>
     </xs:complexType>
    </xs:element>
    <xs:elementname="RelationshipRoles"
                type="RelationshipRolesType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="ConnectionRoles"
                type="ConnectionRolesType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="SiteMap"
                minOccurs="0"
                maxOccurs="1">
     <xs:complexType>
      <xs:sequence>
       <xs:elementname="SiteMap"
                   type="SiteMapType"
                   maxOccurs="1">
        <xs:uniquename="AreaIdMustBeUnique">
         <xs:selectorxpath="Area" />
         <xs:fieldxpath="@Id" />
        </xs:unique>
       </xs:element>
      </xs:sequence>
     </xs:complexType>
    </xs:element>
    <xs:elementname="EntityMaps"
                type="EntityMapsType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="EntityRelationships"
                type="EntityRelationShipsType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="OrganizationSettings"
                type="OrganizationSettingsType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="optionsets"
                type="optionsetstype"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="Reports"
                type="ReportsType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="Dashboards"
                type="DashboardsType"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="WebResources"
                type="webresourcestype"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="SolutionPluginAssemblies"
                type="pluginassembliestype"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="SdkMessageProcessingSteps"
                type="sdkmessageprocessingstepstype"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="ServiceEndpoints"
                type="serviceendpointstype"
                minOccurs="0"
                maxOccurs="1" />
    <xs:elementname="Languages"
                type="LanguagesType"
                minOccurs="0"
                maxOccurs="1" />
   </xs:sequence>
  </xs:complexType>
 </xs:element>
 <xs:complexTypename="LanguagesType">
  <xs:sequence>
   <xs:elementname="Language"
               type="xs:nonNegativeInteger"
               minOccurs="1"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="DependentType">
  <xs:attributename="type"
                use="required"
                type="xs:string" />
  <xs:attributename="name"
                use="required"
                type="xs:string" />
 </xs:complexType>
 <xs:complexTypename="DependentsType">
  <xs:sequence>
   <xs:elementname="Dependent"
               type="DependentType"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="EntitiesType">
  <xs:sequence>
   <xs:elementname="Entity"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:all>
      <xs:elementname="Name"
                  minOccurs="1"
                  maxOccurs="1">
       <xs:complexType>
        <xs:simpleContent>
         <xs:extensionbase="EntityNameType">
          <xs:attributename="OriginalName"
                        type="xs:string"
                        use="required" />
         </xs:extension>
        </xs:simpleContent>
       </xs:complexType>
      </xs:element>
      <xs:elementname="ObjectTypeCode"
                  type="ObjectTypeCodeType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="EntityInfo"
                  type="EntityInfoType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="FormXml"
                  minOccurs="0"
                  maxOccurs="1" >
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="forms"
                     type="SystemFormsType"
                     minOccurs="0"
                     maxOccurs="unbounded">
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:elementname="SavedQueries"
                  type="SavedQueriesType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Visualizations"
                  type="VisualizationsType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="RibbonDiffXml"
                  type="RibbonEntityDiffXmlType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Icons"
                  type="IconsType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Strings"
                  type="StringsType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:all>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="EntityInfoType">
  <xs:choiceminOccurs="1"
             maxOccurs="1">
   <xs:elementname="entity">
    <xs:complexType>
     <xs:all>
      <xs:elementname="HasRelatedNotes"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="HasRelatedActivities"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsConnectionsEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsDocumentManagementEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsCollaboration"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="AutoRouteToOwnerQueue"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="AutoCreateAccessTeams"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="OwnershipTypeMask"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsAuditEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsActivity"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="ActivityTypeMask"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsActivityParty"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsReplicated"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsReplicationUserFiltered"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsRequiredOffline"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsDuplicateCheckSupported"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsBusinessProcessEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsMailMergeEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsVisibleInMobile"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="MobileClientType"
                  type="xs:int"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsVisibleInMobileClient"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsReadOnlyInMobileClient"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsReadingPaneEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsMapiGridEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsCustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsRenameable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsMappable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyConnectionSettings"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyAuditSettings"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyMobileVisibility"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyMobileClientVisibility"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyMobileClientReadOnly"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyDuplicateDetectionSettings"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyMailMergeSettings"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyQueueSettings"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanCreateAttributes"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanBeRelatedEntityInRelationship"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanBePrimaryEntityInRelationship"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanBeInManyToMany"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanCreateForms"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanCreateCharts"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanCreateViews"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanModifyAdditionalSettings"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="LocalizedNames"
                  type="LocalizedNamesType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="LocalizedCollectionNames"
                  type="LocalizedCollectionNamesType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Descriptions"
                  type="DescriptionsType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="EntityMask"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IconLargeName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IconMediumName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IconSmallName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsQuickCreateEnabled"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IntroducedVersion"
                  type="VersionType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="attributes"
                  minOccurs="1"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="attribute"
                     minOccurs="0"
                     maxOccurs="unbounded">
          <xs:complexType>
           <xs:all>
            <xs:elementname="Type"
                        type="CrmDataType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="Name"
                        type="EntityAttributeNameBaseType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="LogicalName"
                        type="EntityAttributeNameBaseType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="IsCustomField"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="ValidForCreateApi"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="ValidForReadApi"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="ValidForUpdateApi"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="DisplayMask"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="Length"
                        type="LengthType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="IsLogical"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="AttributeOf"
                        type="EntityAttributeNameBaseType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="YomiOf"
                        type="EntityAttributeNameBaseType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="CalculationOf"
                        type="EntityAttributeNameBaseType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="AggregateOf"
                        type="EntityAttributeNameBaseType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="IsAuditEnabled"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="XmlAbbreviation"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="ImeMode"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="RequiredLevel"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="LinkedAttribute"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="Format"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="MaxLength"
                        type="xs:integer"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="MinValue"
                        type="xs:double"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="MaxValue"
                       type="xs:double"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="Accuracy"
                        type="xs:integer"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="Descriptions"
                        type="DescriptionsType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="displaynames"
                        type="displaynamestype"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="OptionSetName"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="optionset"
                        type="optionsettype"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="AppDefaultValue"
                        type="xs:integer"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="AccuracySource"
                        type="xs:integer"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="ReferencedEntityObjectTypeCode"
                        type="ObjectTypeCodeType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="LookupBrowse"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="LookupStyle"
                        type="xs:string"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="LookupTypes"
                        type="LookupTypesType"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="IsSecured"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="IsCustomizable"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="IsRenameable"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="CanModifySearchSettings"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="CanModifyRequirementLevelSettings"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="CanModifyFieldLevelSecuritySettings"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="CanModifyAdditionalSettings"
                        type="TrueFalse01Type"
                        minOccurs="0"
                        maxOccurs="1" />
            <xs:elementname="IntroducedVersion"
                        type="VersionType"
                        minOccurs="0"
                        maxOccurs="1" />
           </xs:all>
           <xs:attributename="PhysicalName"
                         use="required"
                         type="EntityAttributeNameBaseType" />
          </xs:complexType>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
     </xs:all>
     <xs:attributename="Name"
                   use="required"
                   type="EntityAttributeNameBaseType" />
    </xs:complexType>
   </xs:element>
  </xs:choice>
 </xs:complexType>
 <xs:complexTypename="EntityMapsType">
  <xs:choiceminOccurs="0"
             maxOccurs="unbounded">
   <xs:elementname="EntityMap">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="EntitySource"
                  type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="EntityTarget"
                  type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="AttributeMaps"
                  minOccurs="0"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="AttributeMap"
                     minOccurs="0"
                     maxOccurs="unbounded">
          <xs:complexType>
           <xs:sequence>
            <xs:elementname="AttributeSource"
                        type="EntityAttributeNameBaseType"
                        minOccurs="1"
                        maxOccurs="1" />
            <xs:elementname="AttributeTarget"
                        type="EntityAttributeNameBaseType"
                        minOccurs="1"
                        maxOccurs="1" />
           </xs:sequence>
           <xs:attributename="addedby"
                         type="xs:string" />
          </xs:complexType>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
     </xs:sequence>
     <xs:attributename="addedby"
                   type="xs:string" />
    </xs:complexType>
   </xs:element>
  </xs:choice>
 </xs:complexType>
 <xs:complexTypename="RolesType">
  <xs:sequence>
   <xs:elementname="Role"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="IsCustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IntroducedVersion"
                  type="VersionType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="RolePrivileges"
                  type="RolePrivilegestype"
                  minOccurs="0"
                  maxOccurs="1"/>
     </xs:sequence>
     <xs:attributename="name"
                   use="required"
                   type="xs:string" />
     <xs:attributename="id"
                   use="required"
                   type="GuidType" />
     <xs:attributename="unmodified"
                   use="optional"
                   type="TrueFalse01Type" />
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="RolePrivilegestype">
  <xs:sequence>
   <xs:elementname="RolePrivilege"
               type="RolePrivilegeType"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="RolePrivilegeType">
  <xs:attributename="name"
                use="required"
                type="xs:string" />
  <xs:attributename="level"
                use="required"
                type="PrivilegeLevelType" />
 </xs:complexType>
 <xs:simpleTypename="PrivilegeLevelType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="Basic" />
   <xs:enumerationvalue="Local" />
   <xs:enumerationvalue="Deep" />
   <xs:enumerationvalue="Global" />
  </xs:restriction>
 </xs:simpleType>
 <xs:complexTypename="FieldSecurityProfilesType">
  <xs:sequence>
   <xs:elementname="FieldSecurityProfile"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="FieldPermissions"
                  type="FieldPermissionsType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
     <xs:attributename="name"
                   use="required"
                   type="xs:string" />
     <xs:attributename="description"
                   use="optional"
                   type="xs:string" />
     <xs:attributename="fieldsecurityprofileid"
                   use="required"
                   type="GuidType" />
     <xs:attributename="unmodified"
                   use="optional"
                   type="TrueFalse01Type" />
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="FieldPermissionsType">
  <xs:sequence>
   <xs:elementname="FieldPermission"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="EntityName"
                  type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="AttributeName"
                 type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="CanRead"
                  type="xs:integer"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="CanUpdate"
                  type="xs:integer"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="CanCreate"
                  type="xs:integer"
                  minOccurs="1"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="WorkflowsType">
  <xs:sequence>
   <xs:elementname="Workflow"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="XamlFileName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Type"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Subprocess"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Category"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Mode"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="LanguageCode"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Scope"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="OnDemand"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="TriggerOnUpdateAttributeList"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="TriggerOnCreate"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="TriggerOnDelete"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="AsyncAutodelete"
                  type="TrueFalse01Type"
                  minOccurs="0"
                 maxOccurs="1" />
      <xs:elementname="SyncWorkflowLogOnFailure"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="StateCode"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="StatusCode"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CreateStage"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="UpdateStage"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="DeleteStage"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="Rank"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="processorder"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="processroleassignment"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="RunAs"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="SdkMessageId"
                  type="GuidType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="UniqueName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsTransacted"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IntroducedVersion"
                  type="VersionType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsCustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="PrimaryEntity"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="labels"
                  minOccurs="0"
                  maxOccurs="1"
                  type="WorkflowLabelsType"/>
      <xs:elementname="ProcessTriggers"
                  type="ProcessTriggersType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
     <xs:attributename="Name"
                   use="required"
                   type="xs:string" />
     <xs:attributename="Description"
                   use="optional"
                   type="xs:string" />
     <xs:attributename="WorkflowId"
                   use="required"
                   type="GuidType" />
     <xs:attributename="unmodified"
                   use="optional"
                   type="TrueFalse01Type" />
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="WorkflowLabelsType">
  <xs:sequence>
   <xs:elementname="steplabels"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="label"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:attributename="languagecode"
                      type="xs:string"
                      use="required"/>
        <xs:attributename="description"
                      type="xs:string"
                      use="required"/>
       </xs:complexType>
     </xs:element>
     </xs:sequence>
     <xs:attributename="id"
                   use="required"
                   type="GuidType"/>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="ProcessTriggersType">
  <xs:sequence>
   <xs:elementname="ProcessTrigger"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="controltype"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="formid"
                  type="GuidType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="controlname"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="event"
                  type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="iscustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="primaryentitytypecode"
                  type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
     </xs:sequence>
     <xs:attributename="processtriggerid"
                   use="required"
                   type="GuidType" />
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="DashboardsType">
  <xs:sequence>
   <xs:elementname="Dashboard"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:all>
      <xs:elementname="FormId"
                  type="GuidType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="LocalizedNames"
                  type="LocalizedNamesType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="Descriptions"
                  type="DescriptionsType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsCustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsDefault"
                  type="SerializedTrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanBeDeleted"
                  type="TrueFalse01Type"
                  minOccurs="0"
                maxOccurs="1" />
      <xs:elementname="FormXml"
                  type="FormXmlType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IntroducedVersion"
                  type="VersionType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:all>
     <xs:attributename="unmodified"
                   use="optional"
                   type="TrueFalse01Type" />
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="ReportsType">
  <xs:sequence>
   <xs:elementname="ReportSignatureIdMappings"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="ReportSignatureIdMapping"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:attributename="reportid"
                      type="GuidType"
                      use="required" />
        <xs:attributename="signatureid"
                      type="GuidType"
                      use="required" />
        <xs:attributename="signaturelcid"
                      type="xs:integer"
                      use="required" />
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="Report"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:all>
      <xs:elementname="name"
                  type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="defaultfilter"
                  minOccurs="0"
                  maxOccurs="1">
       <xs:annotation> </xs:annotation>
      </xs:element>
      <xs:elementname="iscustomreport"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="description"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="filename"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="languagecode"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="bodyurl"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="mimetype"
                  type="xs:string"
                 minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="reportid"
                  type="GuidType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="iscustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IntroducedVersion"
                  type="VersionType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="reporttypecode"
                  minOccurs="1"
                  maxOccurs="1">
       <xs:simpleType>
        <xs:restrictionbase="xs:integer">
         <xs:enumerationvalue="1" />
         <xs:enumerationvalue="2" />
         <xs:enumerationvalue="3" />
        </xs:restriction>
       </xs:simpleType>
      </xs:element>
      <xs:elementname="ExportedFileName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="ReportVisibilities"
                  minOccurs="0"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="ReportVisbility"
                     minOccurs="0"
                     maxOccurs="unbounded">
          <xs:simpleType>
           <xs:restrictionbase="xs:integer">
            <xs:enumerationvalue="1" />
            <xs:enumerationvalue="2" />
            <xs:enumerationvalue="3" />
           </xs:restriction>
          </xs:simpleType>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:elementname="ReportCategories"
                  minOccurs="0"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="ReportCategory"
                     minOccurs="0"
                     maxOccurs="unbounded">
          <xs:complexType>
           <xs:simpleContent>
            <xs:extensionbase="xs:integer">
             <xs:attributename="name"
                           type="xs:string"
                           use="required" />
            </xs:extension>
           </xs:simpleContent>
          </xs:complexType>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:elementname="ReportEntities"
                  minOccurs="0"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="ReportEntity"
                     type="EntityAttributeNameBaseType"
                     minOccurs="0"
                     maxOccurs="unbounded" />
        </xs:sequence>
       </xs:complexType>
      </xs:element>
     </xs:all>
     <xs:attributename="unmodified"
                   use="optional"
                   type="TrueFalse01Type" />
    </xs:complexType>
   </xs:element>
   <xs:elementname="ReportLinks"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="ReportLink"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:attributename="reportid"
                      type="GuidType"
                      use="required" />
        <xs:attributename="parentreportid"
                      type="GuidType"
                      use="required" />
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="OrganizationSettingsType">
  <xs:sequence>
   <xs:elementname="general"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="fullnameconventioncode"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="numberformat"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="negativeformatcode"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="currencysymbol"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="currencyformatcode"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="pricingdecimalprecision"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="sharetopreviousowneronassign"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="blockedattachments"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="getstartedpanecontentenabled"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="ispresenceenabled"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="isautosaveenabled"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="calendar"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="weekstartdaycode"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="calendartype"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="dateformatcode"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="dateseparator"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="timeformatcode"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="showweeknumber"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="maxappointmentdurationdays"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="email"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="trackingprefix"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="trackingtokenidbase"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="trackingtokeniddigits"
                  type="xs:byte"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="maximumtrackingnumber"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="ignoreinternalemail"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="rendersecureiframeforemail"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="allowunresolvedpartiesonemailsend"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="marketing"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="allowmarketingemailexecution"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="allowautoresponsecreation"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="allowautounsubscribe"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="allowautounsubscribeacknowledgement"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="acknowledgementtemplateid"
                  type="GuidType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="customization"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="isappmode"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="outlookSynchronization"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="tagpollingperiod"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="tagmaxaggressivecycles"
                  type="xs:byte"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="allowoutlookscheduledsyncs"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="minoutlooksyncinterval"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="emailsendpollingperiod"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="allowofflinescheduledsyncs"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="minofflinesyncinterval"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="allowaddressbooksyncs"
                  type="TrueFalseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="minaddressbooksyncinterval"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="autoNumbering"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="campaignprefix"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="contractprefix"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="caseprefix"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="kbprefix"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="orderprefix"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="invoiceprefix"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="uniquespecifierlength"
                  type="xs:integer"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="EntityRelationShipsType">
  <xs:choiceminOccurs="0"
             maxOccurs="unbounded">
   <xs:elementname="EntityRelationship">
    <xs:complexType>
     <xs:all>
      <xs:elementname="EntityRelationshipType"
                  type="EntityRelationshipTypeType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="IntroducedVersion"
                  type="VersionType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsCustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="ReferencingAttributeName"
                  type="EntityAttributeNameBaseType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="ReferencingAttributeRequiredLevel"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="RelationshipDescription"
                  minOccurs="0"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="Descriptions"
                     type="DescriptionsType"
                     minOccurs="0"
                     maxOccurs="1" />
        </xs:sequence>
       </xs:complexType>
      </xs:element>
      <xs:elementname="ReferencingEntityName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="ReferencedEntityName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="FirstEntityName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="SecondEntityName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IntersectEntityName"
                  type="xs:string"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CascadeAssign"
                  type="CrmCascadeSecurityLinkType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CascadeDelete"
                  type="CrmCascadeDeleteLinkType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CascadeReparent"
                  type="CrmCascadeSecurityLinkType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CascadeShare"
                  type="CrmCascadeSecurityLinkType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CascadeUnshare"
                  type="CrmCascadeSecurityLinkType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IsValidForAdvancedFind"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="field"
                  minOccurs="0"
                  maxOccurs="1">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="IsCustomizable"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsRenameable"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="CanModifySearchSettings"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="CanModifyRequirementLevelSettings"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="CanModifyFieldLevelSecuritySettings"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsSecured"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="DisplayMask"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsAuditEnabled"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="LinkedAttribute"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="displaynames"
                     type="displaynamestype"
                     minOccurs="0"
                     maxOccurs="unbounded" />
        </xs:sequence>
        <xs:attributename="name"
                      type="xs:string"
                      use="required" />
        <xs:attributename="requiredlevel"
                      type="xs:string"
                      use="required" />
        <xs:attributename="imemode"
                      type="xs:string"
                      use="optional" />
        <xs:attributename="lookupstyle"
                      type="xs:string"
                      use="optional" />
        <xs:attributename="lookupbrowse"
                      type="TrueFalse01Type"
                      use="optional" />
        <xs:attributename="lookuptypes"
                      type="xs:string"
                      use="optional" />
        <xs:attributename="format"
                      type="xs:string"
                      use="optional" />
       </xs:complexType>
      </xs:element>
      <xs:elementname="EntityRelationshipRoles"
                  type="EntityRelationshipRolesType"
                  minOccurs="0"
                  maxOccurs="1" />
     </xs:all>
     <xs:attributename="Name"
                   use="required"
                   type="xs:string" />
    </xs:complexType>
   </xs:element>
  </xs:choice>
 </xs:complexType>
 <xs:complexTypename="IconsType">
  <xs:sequence>
   <xs:elementname="Icon"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:simpleContent>
      <xs:extensionbase="xs:base64Binary">
       <xs:attributename="type"
                     use="required"
                     type="CrmEntityIconType" />
      </xs:extension>
     </xs:simpleContent>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="StringsType">
  <xs:choicemaxOccurs="unbounded">
   <xs:elementname="Strings"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="String"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:simpleContent>
         <xs:extensionbase="xs:string">
          <xs:attributename="languagecode"
                        use="required"
                        type="xs:string" />
          <xs:attributename="Comment"
                        use="required"
                        type="xs:string" />
         </xs:extension>
        </xs:simpleContent>
       </xs:complexType>
      </xs:element>
     </xs:sequence>
     <xs:attributename="ResourceKey"
                   use="required"
                   type="xs:string" />
    </xs:complexType>
   </xs:element>
  </xs:choice>
 </xs:complexType>
 <xs:complexTypename="FormXmlType">
  <xs:sequence>
   <xs:elementname="forms"
               type="FormsType"
               minOccurs="0"
               maxOccurs="unbounded">
   </xs:element>
  </xs:sequence>
  <xs:attributename="addedby"
                type="xs:string" />
  <xs:attributename="id"
                type="GuidType" />
 </xs:complexType>
 <xs:complexTypename="FormsType">
  <xs:sequence>
   <xs:elementname="form"
               type="FormType"
               minOccurs="1"
               maxOccurs="unbounded" />
  </xs:sequence>
  <xs:attributename="type"
                type="SystemFormType" />
 </xs:complexType>
 <xs:complexTypename="SystemFormsType">
  <xs:sequence>
   <xs:elementname="systemform"
               minOccurs="1"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:all>
      <xs:elementname="formid"
                  type="GuidType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="IsCustomizable"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="IntroducedVersion"
                  type="VersionType"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="CanBeDeleted"
                  type="TrueFalse01Type"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="FormPresentation"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="FormActivationState"
                  type="xs:nonNegativeInteger"
                  minOccurs="0"
                  maxOccurs="1" />
      <xs:elementname="form"
                  type="FormType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="LocalizedNames"
                  type="LocalizedNamesType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="Descriptions"
                  type="DescriptionsType"
                  minOccurs="0"
                 maxOccurs="1" />
     </xs:all>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
  <xs:attributename="type"
                type="SystemFormType" />
 </xs:complexType>
 <xs:simpleTypename="NonEmptyStringType">
  <xs:restrictionbase="xs:string">
   <xs:minLengthvalue="1" />
  </xs:restriction>
 </xs:simpleType>
 <xs:complexTypename="RelationshipRolesType">
  <xs:sequence>
   <xs:elementname="RelationshipRole"
               minOccurs="0"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="relationshiproleid"
                  type="GuidType"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="name"
                  type="xs:string"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="statecode"
                  type="xs:nonNegativeInteger"
                  minOccurs="1"
                  maxOccurs="1" />
      <xs:elementname="RelationshipRoleMap"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="relationshiprolemapid"
                     type="GuidType"
                     minOccurs="1"
                     maxOccurs="1" />
         <xs:elementname="associateobjecttypecode"
                     type="ObjectTypeCodeType"
                     minOccurs="1"
                     maxOccurs="1" />
         <xs:elementname="primaryobjecttypecode"
                     type="ObjectTypeCodeType"
                     minOccurs="1"
                     maxOccurs="1" />
        </xs:sequence>
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="ConnectionRolesType">
  <xs:sequence>
   <xs:elementname="ConnectionRoles"
               minOccurs="1"
               maxOccurs="unbounded">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="ConnectionRole"
                  minOccurs="1"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="connectionroleid"
                     type="GuidType"
                     minOccurs="1"
                     maxOccurs="1" />
         <xs:elementname="name"
                     type="xs:string"
                     minOccurs="1"
                     maxOccurs="1" />
         <xs:elementname="category"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="description"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsCustomizable"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IntroducedVersion"
                     type="VersionType"
                    minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="ConnectionRoleObjectTypeCodes"
                     minOccurs="0"
                     maxOccurs="1" >
          <xs:complexType>
           <xs:sequence>
            <xs:elementname="ConnectionRoleObjectTypeCode"
                        minOccurs="1"
                        maxOccurs="unbounded">
             <xs:complexType>
              <xs:sequence>
               <xs:elementname="connectionroleobjecttypecodeid"
                          type="GuidType"
                           minOccurs="1"
                           maxOccurs="1" />
               <xs:elementname="associatedobjecttypecode"
                           type="xs:string"
                           minOccurs="1"
                           maxOccurs="1" />
              </xs:sequence>
             </xs:complexType>
            </xs:element>
           </xs:sequence>
          </xs:complexType>
         </xs:element>
        </xs:sequence>
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="ConnectionRoleAssociations"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="ConnectionRoleAssociation"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:sequence>
         <xs:elementname="connectionroleid"
                     type="GuidType"
                     minOccurs="1"
                     maxOccurs="1" />
         <xs:elementname="associatedconnectionroleid"
                     type="GuidType"
                     minOccurs="1"
                     maxOccurs="1" />
        </xs:sequence>
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>
 <xs:complexTypename="CrmTemplatesType">
  <xs:sequence>
   <xs:elementname="KBArticleTemplates"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="kbarticletemplate"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:all>
         <xs:elementname="kbarticletemplateid"
                     type="GuidType"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="structurexml"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="formatxml"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="title"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="description"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="languagecode"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsCustomizable"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IntroducedVersion"
                     type="VersionType"
                     minOccurs="0"
                     maxOccurs="1" />
        </xs:all>
        <xs:attributename="addedby"
                      type="xs:string" />
        <xs:attributename="id"
                      use="optional"
                      type="GuidType" />
        <xs:attributename="name"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="description"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="unmodified"
                      use="optional"
                      type="TrueFalse01Type" />
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="EmailTemplates"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="emailtemplate"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:all>
         <xs:elementname="templateid"
                     type="GuidType"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="subject"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="subjectpresentationxml"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="ispersonal"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="mimetype"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="templatetypecode"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="generationtypecode"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="body"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="title"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="description"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="presentationxml"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="versionnumber"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="languagecode"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsCustomizable"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="ActivityMimeAttachments"
                     type="activitymimeattachmentstype"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IntroducedVersion"
                     type="VersionType"
                     minOccurs="0"
                     maxOccurs="1" />
        </xs:all>
        <xs:attributename="addedby"
                      type="xs:string" />
        <xs:attributename="id"
                      use="optional"
                      type="GuidType" />
        <xs:attributename="name"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="description"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="unmodified"
                      use="optional"
                      type="TrueFalse01Type" />
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="ContractTemplates"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="contracttemplate"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:all>
         <xs:elementname="contracttemplateid"
                     type="GuidType"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="name"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="abbreviation"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="description"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsCustomizable"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IntroducedVersion"
                     type="VersionType"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="contractservicelevelcode"
                     minOccurs="0"
                     maxOccurs="1">
          <xs:complexType>
           <xs:simpleContent>
          <xs:extensionbase="xs:nonNegativeInteger">
             <xs:anyAttributeprocessContents="skip" />
            </xs:extension>
           </xs:simpleContent>
          </xs:complexType>
         </xs:element>
         <xs:elementname="billingfrequencycode"
                     minOccurs="0"
                     maxOccurs="1">
          <xs:complexType>
           <xs:simpleContent>
            <xs:extensionbase="xs:nonNegativeInteger">
             <xs:anyAttributeprocessContents="skip" />
            </xs:extension>
           </xs:simpleContent>
          </xs:complexType>
         </xs:element>
         <xs:elementname="allotmenttypecode"
                     minOccurs="0"
                     maxOccurs="1">
          <xs:complexType>
           <xs:simpleContent>
            <xs:extensionbase="xs:nonNegativeInteger">
             <xs:anyAttributeprocessContents="skip" />
            </xs:extension>
           </xs:simpleContent>
          </xs:complexType>
         </xs:element>
         <xs:elementname="usediscountaspercentage"
                     minOccurs="0"
                     maxOccurs="1">
          <xs:complexType>
           <xs:simpleContent>
            <xs:extensionbase="xs:nonNegativeInteger">
             <xs:anyAttributeprocessContents="skip" />
            </xs:extension>
           </xs:simpleContent>
          </xs:complexType>
         </xs:element>
         <xs:elementname="effectivitycalendar"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
        </xs:all>
        <xs:attributename="addedby"
                      type="xs:string" />
        <xs:attributename="id"
                      use="optional"
                      type="GuidType" />
        <xs:attributename="name"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="description"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="unmodified"
                      use="optional"
                      type="TrueFalse01Type" />
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
   <xs:elementname="MailMergeTemplates"
               minOccurs="0"
               maxOccurs="1">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="mailmergetemplate"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:all>
         <xs:elementname="mailmergetemplateid"
                     type="GuidType"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="name"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="defaultfilter"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="filename"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="parameterxml"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="mimetype"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="templatetypecode"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="mailmergetype"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="filesize"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="documentformat"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="languagecode"
                     type="xs:nonNegativeInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="body"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="description"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="entityPlatformName"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1"/>
         <xs:elementname="IsCustomizable"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IntroducedVersion"
                     type="VersionType"
                     minOccurs="0"
                     maxOccurs="1" />
        </xs:all>
        <xs:attributename="addedby"
                      type="xs:string" />
        <xs:attributename="id"
                      use="optional"
                      type="GuidType" />
        <xs:attributename="name"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="description"
                      use="optional"
                      type="xs:string" />
        <xs:attributename="unmodified"
                      use="optional"
                      type="TrueFalse01Type" />
       </xs:complexType>
      </xs:element>
     </xs:sequence>
    </xs:complexType>
   </xs:element>
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="activitymimeattachmentstype">
  <xs:sequence>
   <xs:elementname="ActivityMimeAttachment"
               type="activitymimeattachmenttype"
               minOccurs="0"
               maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="activitymimeattachmenttype">
  <xs:sequence>
   <xs:elementname="activitymimeattachmentid"
               type="GuidType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="attachmentid"
               type="GuidType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="attachmentnumber"
               type="xs:nonNegativeInteger"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="filename"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="filesize"
               type="xs:nonNegativeInteger"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="objectid"
               type="GuidType"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="mimetype"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="subject"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
   <xs:elementname="SolutionAttachmentsFileName"
               type="xs:string"
               minOccurs="0"
               maxOccurs="1" />
  </xs:sequence>
 </xs:complexType>

 <xs:complexTypename="SavedQueriesType">
  <xs:choicemaxOccurs="unbounded">
   <xs:elementname="savedqueries">
    <xs:complexType>
     <xs:sequence>
      <xs:elementname="savedquery"
                  minOccurs="0"
                  maxOccurs="unbounded">
       <xs:complexType>
        <xs:all>
         <xs:elementname="savedqueryid"
                     type="GuidType"
                     minOccurs="1"
                     maxOccurs="1" />
         <xs:elementname="queryapi"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="LocalizedNames"
                     type="LocalizedNamesType"
                     minOccurs="1"
                     maxOccurs="1" />
         <xs:elementname="Descriptions"
                     type="DescriptionsType"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="IsCustomizable"
                     type="SerializedTrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="CanBeDeleted"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="isquickfindquery"
                     type="SerializedTrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="fetchxml"
                     minOccurs="0"
                     maxOccurs="1">
          <xs:complexType>
           <xs:sequence>
            <xs:elementname="fetch"
                        type="FetchType"
                        minOccurs="0"
                        maxOccurs="1" />
           </xs:sequence>
          </xs:complexType>
         </xs:element>
         <xs:elementname="IntroducedVersion"
                     type="VersionType"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="isdefault"
                     type="SerializedTrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="isprivate"
                     type="TrueFalse01Type"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="returnedtypecode"
                     type="SerializedInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="conditionalformatting"
                     type="xs:string"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="layoutxml"
                     minOccurs="0"
                     maxOccurs="1">
          <xs:complexType>
           <xs:sequence>
            <xs:elementname="grid"
                        minOccurs="0"
                        maxOccurs="1">
             <xs:complexType>
              <xs:sequence>
               <xs:elementname="row"
                           minOccurs="0"
                           maxOccurs="unbounded">
                <xs:complexType>
                 <xs:sequence>
                  <xs:elementname="cell"
                              minOccurs="0"
                              maxOccurs="unbounded">
                   <xs:complexType>
                    <xs:attributename="name"
                                  type="xs:string" />
                    <xs:attributename="width"
                                  type="xs:nonNegativeInteger" />
                    <xs:attributename="disableMetaDataBinding"
                                  type="TrueFalse01Type" />
                    <xs:attributename="LabelId"
                                  type="xs:string" />
                    <xs:attributename="ishidden"
                                  type="TrueFalse01Type" />
                    <xs:attributename="disableSorting"
                                  type="TrueFalse01Type" />
                    <xs:attributename="addedby"
                                  type="xs:string" />
                    <xs:attributename="desc"
                                  type ="xs:string" />
                    <xs:attributename="cellType"
                                type ="xs:string" />
                   </xs:complexType>
                  </xs:element>
                 </xs:sequence>
                 <xs:attributename="name"
                               type="xs:string" />
                 <xs:attributename="id"
                               type="xs:string" />
                 <xs:attributename="multiobjectidfield"
                               type="xs:string" />
                 <xs:attributename="layoutstyle"
                               type="xs:string" />
                </xs:complexType>
               </xs:element>
              </xs:sequence>
              <xs:attributename="name"
                            type="xs:string" />
              <xs:attributename="object"
                            type="ObjectTypeCodeType" />
              <xs:attributename="jump"
                            type="xs:string" />
              <xs:attributename="select"
                            type="TrueFalse01Type" />
              <xs:attributename="icon"
                            type="TrueFalse01Type" />
              <xs:attributename="preview"
                            type="TrueFalse01Type" />
              <xs:attributename="iconrenderer"
                            type="xs:string" />
             </xs:complexType>
            </xs:element>
           </xs:sequence>
          </xs:complexType>
         </xs:element>
         <xs:elementname="querytype"
                     type="SerializedInteger"
                     minOccurs="0"
                     maxOccurs="1" />
         <xs:elementname="columnsetxml"
                     minOccurs="0"
                     maxOccurs="1">
          <xs:complexType>
           <xs:sequence>
            <xs:elementname="columnset"
                        minOccurs="0"
                        maxOccurs="1">
             <xs:complexType>
              <xs:choiceminOccurs="0"
                         maxOccurs="unbounded">
               <xs:elementname="ascend"
                           type="xs:string"
                           minOccurs="0" />
               <xs:elementname="descend"
                           type="xs:string"
                           minOccurs="0" />
               <xs:elementname="column"
                           minOccurs="0"
                           maxOccurs="unbounded">
                <xs:complexType>
                 <xs:simpleContent>
                  <xs:extensionbase="xs:string">
                   <xs:attributename="addedby"
                                 type="xs:string" />
                  </xs:extension>
                 </xs:simpleContent>
                </xs:complexType>
               </xs:element>
               <xs:elementref="filter"
                           minOccurs="0"
                           maxOccurs="unbounded" />
              </xs:choice>
              <xs:attributename="version"
                            type="xs:string" />
              <xs:attributename="distinct"
                           type="xs:boolean" />
             </xs:complexType>
            </xs:element>
           </xs:sequence>
          </xs:complexType>
         </xs:element>
        </xs:all>
       </xs:complexType>
      </xs:element>
     </xs:sequence>
     <xs:attributename="entity"
                   type="xs:string" />
     <xs:attributename="morerecords"
                   type="xs:string" />
     <xs:attributename="paging-cookie"
                   type="xs:string" />
     <xs:attributename="version"
                   type="xs:string" />
    </xs:complexType>
   </xs:element>
  </xs:choice>
 </xs:complexType>
 <xs:complexTypename="VisualizationsType">
  <xs:choicemaxOccurs="unbounded">
   <xs:sequence>
    <xs:elementname="visualization"
                minOccurs ="0"
                maxOccurs="unbounded">
     <xs:complexType>
      <xs:all>
       <xs:elementname="savedqueryvisualizationid"
                   type="GuidType"
                   minOccurs="1"
                   maxOccurs="1"/>
       <xs:elementname="LocalizedNames"
                   type="LocalizedNamesType"
                   minOccurs="1"
                   maxOccurs="1" />
       <xs:elementname="Descriptions"
                   type="DescriptionsType"
                   minOccurs="0"
                   maxOccurs="1" />
       <xs:elementname="webresourcename"
                   type="xs:string"
                   minOccurs="0"
                   maxOccurs="1"/>
       <xs:elementname="customizationlevel"
                   minOccurs="0"
                   maxOccurs="1">
        <xs:complexType>
         <xs:simpleContent>
          <xs:extensionbase="xs:integer">
           <xs:attributename="formattedvalue"
                         type="xs:integer"
                         use="required" />
          </xs:extension>
         </xs:simpleContent>
        </xs:complexType>
       </xs:element>

       <xs:elementname="datadescription"
                   minOccurs="0"
                   maxOccurs="1">
        <xs:annotation> </xs:annotation>
       </xs:element>
       <xs:elementname="presentationdescription"
                   minOccurs="0"
                   maxOccurs="1">
        <xs:annotation> </xs:annotation>
     </xs:element>
       <xs:elementname="isdefault"
                   type="SerializedTrueFalse01Type"
                   minOccurs="0"
                   maxOccurs ="1"/>
       <xs:elementname="IsCustomizable"
                   type="TrueFalse01Type"
                   minOccurs="0"
                   maxOccurs="1" />
       <xs:elementname="IntroducedVersion"
                   type="VersionType"
                   minOccurs="0"
                   maxOccurs="1" />
      </xs:all>
     </xs:complexType>
    </xs:element>
   </xs:sequence>
  </xs:choice>
 </xs:complexType>
 <xs:complexTypename="IgnoredType">
  <xs:sequence>
   <xs:anyprocessContents="skip"
           minOccurs="0"
           maxOccurs="unbounded" />
  </xs:sequence>
 </xs:complexType>
 <xs:simpleTypename="ChartGridMode">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="Chart" />
   <xs:enumerationvalue="Grid" />
   <xs:enumerationvalue="All" />
  </xs:restriction>
 </xs:simpleType>
 <xs:simpleTypename="SystemFormType">
  <xs:restrictionbase="xs:string">
   <xs:enumerationvalue="main" />
   <xs:enumerationvalue="preview" />
   <xs:enumerationvalue="appointmentBook" />
   <xs:enumerationvalue="minicampaignbo" />
   <xs:enumerationvalue="mobile" />
   <xs:enumerationvalue="dashboard" />
   <xs:enumerationvalue="other" />
   <xs:enumerationvalue="quick" />
   <xs:enumerationvalue="quickCreate" />
  </xs:restriction>
 </xs:simpleType>
</xs:schema>

See Also

When to edit the customizations file
Create, install, and update a managed solution
Create, export, or import an unmanaged solution
Customization XML reference