locked
[USMT 4.0] Schema xsd pour config.xml RRS feed

  • Question

  • Bonjour,

    Je cherche le schema xsd pour le fichier de configuration config.xml de USMT 4.0

    J'ai besoin de ce fichier pour valider le fichier config.xml modifiable dans une application qui utilise USMT

    Est ce que vous savez ou je peux trouver ce fichier? je n'ai trouvé que le schéma MigXML.XSD pour les fichiers MigXML

    Merci pour votre aide


    • Modifié Troopers mardi 17 juillet 2012 09:12
    mardi 17 juillet 2012 07:19

Réponses

  • Non, la validation n'est pas correcte :

    "L'élément 'Documents' ne peut pas contenir un élément enfant 'component' car le modèle de contenu de l'élément parent est texte seul."

    Je me suis créer mon propre modèle xsd :

    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType name="componentType">
    	<xs:sequence minOccurs="0">
    	  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    	  </xs:element>
    	</xs:sequence>
    	<xs:attribute name="displayname" type="xs:string" use="required" />
    	<xs:attribute name="migrate" type="xs:string" use="required" />
    	<xs:attribute name="ID" type="xs:string" use="required" />
      </xs:complexType>
      
      <xs:element name="Configuration">
    	<xs:complexType>
    	  <xs:sequence>
    		<xs:element name="Applications">
    		  <xs:complexType>
    			<xs:sequence minOccurs="0">
    			  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    			  </xs:element>
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="Documents">
    		  <xs:complexType>
    			<xs:sequence minOccurs="0">
    			  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    			  </xs:element>
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="WindowsComponents">
    		  <xs:complexType>
    			<xs:sequence minOccurs="0">
    			  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    			  </xs:element>
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="Policies">
    		  <xs:complexType>
    			<xs:sequence>
    			  <xs:element name="ErrorControl" type="xs:string" />
    			  <xs:element name="HardLinkStoreControl" type="xs:string" />
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="ProfileControl" type="xs:string" />
    	  </xs:sequence>
    	</xs:complexType>
      </xs:element>
    </xs:schema>

    Mais je suis pas sûr que tout soit correct notament pour les noeuds Policies et ProfileControl

    • Marqué comme réponse Florin Ciuca mercredi 25 juillet 2012 09:27
    mardi 24 juillet 2012 12:47

Toutes les réponses

  • Bonjour,

    De ce que je sais vous pouvez utiliser le fichier Migxml.xsd pour valider tous les fichiers XML dans USMT.

    Quand vous créez un fichier personnalisé config.xml vous devez utiliser le schéma XML (MigXML.xsd) pour valider la syntaxe via un outil de création XML tel que Microsoft Visual Studio.

    Cordialement,

    Florin


    Florin CIUCA, MSFT  Votez! Appel à la contribution
    Nous vous prions de considérer que dans le cadre de ce forum on n’offre pas de support technique et aucune garantie de la part de Microsoft ne peut être offerte.

    lundi 23 juillet 2012 11:09
  • Oui mais MigXMl.xsd permet de valider les fichiers de migrations. Moi je cherche à valider le fichier de configuration de USMT, par exemple :

    <?xml version="1.0" encoding="UTF-8"?>
    <Configuration>
      <Applications/>
      <Documents>
        <component displayname="Favorites" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/Favorites/settings"/>
        <component displayname="Start Menu" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/Start Menu/settings"/>
        <component displayname="Shared Start Menu" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/Shared Start Menu/settings"/>
    	<component displayname="Shared Desktop" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/Shared Desktop/settings"/>
        <component displayname="Shared Documents" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/Shared Documents/data"/>
        <component displayname="User Data" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/User Data/data"/>
        <component displayname="My Documents" migrate="no" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/My Documents/data"/>
        <component displayname="My Pictures" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/miguser/My Pictures/data"/>
      </Documents>
      <WindowsComponents>
        <component displayname="Tablet PC Settings" migrate="yes" ID="tablet_pc_settings">
          <component displayname="Accessories" migrate="yes" ID="tablet_pc_settings\tablet_pc_accessories">
            <component displayname="Microsoft-Windows-TabletPC-StickyNotes" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabletpc-stickynotes/microsoft-windows-tabletpc-stickynotes/settings"/>
            <component displayname="Microsoft-Windows-TabletPC-SnippingTool" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabletpc-snippingtool/microsoft-windows-tabletpc-snippingtool/settings"/>
            <component displayname="Microsoft-Windows-TabletPC-Journal" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabletpc-journal/microsoft-windows-tabletpc-journal/settings"/>
          </component>
          <component displayname="Input Panel" migrate="yes" ID="tablet_pc_settings\tablet_pc_input_panel">
            <component displayname="Microsoft-Windows-TabletPC-InputPanel" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabletpc-inputpanel/microsoft-windows-tabletpc-inputpanel/settings"/>
          </component>
          <component displayname="General Options" migrate="yes" ID="tablet_pc_settings\tablet_pc_general_options">
            <component displayname="Microsoft-Windows-TabletPC-UIHub" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabletpc-uihub/microsoft-windows-tabletpc-uihub/settings"/>
            <component displayname="Microsoft-Windows-TabletPC-Platform-Input-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabletpc-platform-input-core/microsoft-windows-tabletpc-platform-input-core/settings"/>
          </component>
          <component displayname="Handwriting Recognition" migrate="yes" ID="tablet_pc_settings\handwriting_recognition">
            <component displayname="Microsoft-Windows-TabletPC-InputPersonalization" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabletpc-inputpersonalization/microsoft-windows-tabletpc-inputpersonalization/settings"/>
          </component>
        </component>
        <component displayname="Sound and Speech Recognition" migrate="yes" ID="sound_and_speech_recognition">
          <component displayname="Speech Recognition" migrate="yes" ID="sound_and_speech_recognition\speech_recognition">
            <component displayname="Microsoft-Windows-SpeechCommon" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-speechcommon/microsoft-windows-speechcommon/settings"/>
          </component>
        </component>
        <component displayname="Hardware" migrate="yes" ID="hardware">
          <component displayname="Phone and Modem" migrate="yes" ID="hardware\phone_and_modem">
            <component displayname="Microsoft-Windows-TapiSetup" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tapisetup/microsoft-windows-tapisetup/settings"/>
          </component>
          <component displayname="Printers and Faxes" migrate="yes" ID="hardware\printers_and_faxes">
            <component displayname="Microsoft-Windows-Printing-Spooler-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-printing-spooler-core/microsoft-windows-printing-spooler-core/settings"/>
            <component displayname="Microsoft-Windows-Printing-Spooler-Networkclient" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-printing-spooler-networkclient/microsoft-windows-printing-spooler-networkclient/settings"/>
            <component displayname="Microsoft-Windows-Printing-Spooler-Core-Localspl" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-printing-spooler-core-localspl/microsoft-windows-printing-spooler-core-localspl/settings"/>
          </component>
        </component>
        <component displayname="Programs" migrate="yes" ID="programs">
          <component displayname="Media Player Settings" migrate="yes" ID="programs\media_player_settings">
            <component displayname="Microsoft-Windows-MediaPlayer-Migration" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-mediaplayer-migration/microsoft-windows-mediaplayer-migration/settings"/>
          </component>
        </component>
        <component displayname="Communications and Sync" migrate="yes" ID="communications_and_sync">
          <component displayname="Windows Mail" migrate="yes" ID="communications_and_sync\windows_mail">
            <component displayname="Microsoft-Windows-WAB" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-wab/microsoft-windows-wab/settings"/>
            <component displayname="Microsoft-Windows-Mail" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-mail/microsoft-windows-mail/settings"/>
          </component>
        </component>
        <component displayname="Microsoft-Windows-Migration-DisplayGroups" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-migration-displaygroups/microsoft-windows-migration-displaygroups/settings"/>
        <component displayname="Performance and Maintenance" migrate="yes" ID="performance_and_maintenance">
          <component displayname="Diagnostics" migrate="yes" ID="performance_and_maintenance\diagnostics">
            <component displayname="Microsoft-Windows-RemoteAssistance-Exe" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-remoteassistance-exe/microsoft-windows-remoteassistance-exe/settings"/>
            <component displayname="Microsoft-Windows-Feedback-Service" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-feedback-service/microsoft-windows-feedback-service/settings"/>
          </component>
          <component displayname="Error Reporting" migrate="yes" ID="performance_and_maintenance\error_reporting">
            <component displayname="Microsoft-Windows-ErrorReportingCore" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-errorreportingcore/microsoft-windows-errorreportingcore/settings"/>
          </component>
        </component>
        <component displayname="Network and Internet" migrate="yes" ID="network_and_internet">
          <component displayname="Offline Files" migrate="yes" ID="network_and_internet\offline_files">
            <component displayname="Microsoft-Windows-OfflineFiles-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-offlinefiles-core/microsoft-windows-offlinefiles-core/settings"/>
          </component>
          <component displayname="Internet Options" migrate="yes" ID="network_and_internet\internet_options">
            <component displayname="Microsoft-Windows-ieframe" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-ieframe/microsoft-windows-ieframe/settings"/>
            <component displayname="Microsoft-Windows-IE-InternetExplorer" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-ie-internetexplorer/microsoft-windows-ie-internetexplorer/settings"/>
            <component displayname="Microsoft-Windows-IE-Feeds-Platform" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-ie-feeds-platform/microsoft-windows-ie-feeds-platform/settings"/>
            <component displayname="Microsoft-Windows-IE-ClientNetworkProtocolImplementation" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-ie-clientnetworkprotocolimplementation/microsoft-windows-ie-clientnetworkprotocolimplementation/settings"/>
          </component>
          <component displayname="Networking Connections" migrate="yes" ID="network_and_internet\networking_connections">
            <component displayname="Microsoft-Windows-Wlansvc" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-wlansvc/microsoft-windows-wlansvc/settings"/>
            <component displayname="Microsoft-Windows-RasConnectionManager" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rasconnectionmanager/microsoft-windows-rasconnectionmanager/settings"/>
            <component displayname="Microsoft-Windows-RasApi" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rasapi/microsoft-windows-rasapi/settings"/>
            <component displayname="Microsoft-Windows-PeerToPeerCollab" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-peertopeercollab/microsoft-windows-peertopeercollab/settings"/>
            <component displayname="Microsoft-Windows-MPR" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-mpr/microsoft-windows-mpr/settings"/>
            <component displayname="Microsoft-Windows-Dot3svc" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-dot3svc/microsoft-windows-dot3svc/settings"/>
          </component>
        </component>
        <component displayname="Date, Time, Language and Region" migrate="no" ID="date_time_language_and_region">
          <component displayname="Regional Language Options" migrate="yes" ID="date_time_language_and_region\regional_language_options">
            <component displayname="Microsoft-Windows-TableDrivenTextService-Migration" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-tabledriventextservice-migration/microsoft-windows-tabledriventextservice-migration/settings"/>
            <component displayname="Microsoft-Windows-TextServicesFramework-Migration" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-textservicesframework-migration/microsoft-windows-textservicesframework-migration/settings"/>
            <component displayname="Microsoft-Windows-MUI-Settings" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-mui-settings/microsoft-windows-mui-settings/settings"/>
            <component displayname="Microsoft-Windows-International-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-international-core/microsoft-windows-international-core/settings"/>
            <component displayname="Microsoft-Windows-IME-Traditional-Chinese-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-ime-traditional-chinese-core/microsoft-windows-ime-traditional-chinese-core/settings"/>
            <component displayname="Microsoft-Windows-IME-Simplified-Chinese-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-ime-simplified-chinese-core/microsoft-windows-ime-simplified-chinese-core/settings"/>
            <component displayname="Microsoft-Windows-Desktop_Technologies-Text_Input_Services-IME-Japanese-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-desktop_technologies-text_input_services-ime-japanese-core/microsoft-windows-desktop_technologies-text_input_services-ime-japanese-core/settings"/>
          </component>
        </component>
        <component displayname="Security" migrate="yes" ID="security">
          <component displayname="Microsoft-Windows-Rights-Management-Client-v1-API" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rights-management-client-v1-api/microsoft-windows-rights-management-client-v1-api/settings"/>
          <component displayname="Security Options" migrate="yes" ID="security\security_options">
            <component displayname="Microsoft-Windows-Credential-Manager" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-credential-manager/microsoft-windows-credential-manager/settings"/>
          </component>
        </component>
        <component displayname="Shared Favorites" migrate="no" ID="Settings|http://www.microsoft.com/migration/1.0/migxmlext/miguser/Shared Favorites/settings||||"/>
        <component displayname="Shared Start Menu" migrate="no" ID="Settings|http://www.microsoft.com/migration/1.0/migxmlext/miguser/Shared Start Menu/settings||||"/>
        <component displayname="Appearance and Display" migrate="yes" ID="appearance_and_display">
          <component displayname="Windows Games Settings" migrate="yes" ID="appearance_and_display\windows_games_settings">
            <component displayname="Microsoft-Windows-GameExplorer" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-gameexplorer/microsoft-windows-gameexplorer/settings"/>
          </component>
          <component displayname="Taskbar and Start Menu" migrate="no" ID="appearance_and_display\taskbar_and_start_menu">
            <component displayname="Microsoft-Windows-stobject" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-stobject/microsoft-windows-stobject/settings"/>
            <component displayname="Microsoft-Windows-explorer" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-explorer/microsoft-windows-explorer/settings"/>
          </component>
          <component displayname="Personalized Settings" migrate="yes" ID="appearance_and_display\personalized_settings">
            <component displayname="Microsoft-Windows-uxtheme" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-uxtheme/microsoft-windows-uxtheme/settings"/>
            <component displayname="Microsoft-Windows-themeui" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-themeui/microsoft-windows-themeui/settings"/>
            <component displayname="Microsoft-Windows-shmig" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-shmig/microsoft-windows-shmig/settings"/>
            <component displayname="Microsoft-Windows-shell32" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-shell32/microsoft-windows-shell32/settings"/>
            <component displayname="Microsoft-Windows-CommandPrompt" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-commandprompt/microsoft-windows-commandprompt/settings"/>
          </component>
        </component>
        <component displayname="Additional Options" migrate="yes" ID="additional_options">
          <component displayname="Help Settings" migrate="yes" ID="additional_options\help_settings">
            <component displayname="Microsoft-Windows-Help-Client" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-help-client/microsoft-windows-help-client/settings"/>
          </component>
          <component displayname="Windows Core Settings" migrate="yes" ID="additional_options\windows_core_settings">
            <component displayname="Microsoft-Windows-Win32k-Settings" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-win32k-settings/microsoft-windows-win32k-settings/settings"/>
            <component displayname="Microsoft-Windows-Web-Services-for-Management-Core" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-web-services-for-management-core/microsoft-windows-web-services-for-management-core/settings"/>
            <component displayname="Microsoft-Windows-UPnPSSDP" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-upnpssdp/microsoft-windows-upnpssdp/settings"/>
            <component displayname="Microsoft-Windows-UPnPDeviceHost" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-upnpdevicehost/microsoft-windows-upnpdevicehost/settings"/>
            <component displayname="Microsoft-Windows-UPnPControlPoint" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-upnpcontrolpoint/microsoft-windows-upnpcontrolpoint/settings"/>
            <component displayname="Microsoft-Windows-TerminalServices-RemoteConnectionManager" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-terminalservices-remoteconnectionmanager/microsoft-windows-terminalservices-remoteconnectionmanager/settings"/>
            <component displayname="Microsoft-Windows-TerminalServices-Drivers" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-terminalservices-drivers/microsoft-windows-terminalservices-drivers/settings"/>
            <component displayname="Microsoft-Windows-SQMApi" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-sqmapi/microsoft-windows-sqmapi/settings"/>
            <component displayname="Microsoft-Windows-RPC-Remote" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rpc-remote/microsoft-windows-rpc-remote/settings"/>
            <component displayname="Microsoft-Windows-RPC-Local" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rpc-local/microsoft-windows-rpc-local/settings"/>
            <component displayname="Microsoft-Windows-RPC-HTTP" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rpc-http/microsoft-windows-rpc-http/settings"/>
            <component displayname="Microsoft-Windows-Rasppp" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rasppp/microsoft-windows-rasppp/settings"/>
            <component displayname="Microsoft-Windows-RasMprDdm" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rasmprddm/microsoft-windows-rasmprddm/settings"/>
            <component displayname="Microsoft-Windows-RasBase" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-rasbase/microsoft-windows-rasbase/settings"/>
            <component displayname="Microsoft-Windows-Microsoft-Data-Access-Components-(MDAC)-ODBC-DriverManager-Dll" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-microsoft-data-access-components-(mdac)-odbc-drivermanager-dll/microsoft-windows-microsoft-data-access-components-(mdac)-odbc-drivermanager-dll/settings"/>
            <component displayname="Microsoft-Windows-ICM-Profiles" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-icm-profiles/microsoft-windows-icm-profiles/settings"/>
            <component displayname="Microsoft-Windows-feclient" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-feclient/microsoft-windows-feclient/settings"/>
            <component displayname="Microsoft-Windows-dpapi-keys" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-dpapi-keys/microsoft-windows-dpapi-keys/settings"/>
            <component displayname="Microsoft-Windows-Crypto-keys" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-crypto-keys/microsoft-windows-crypto-keys/settings"/>
            <component displayname="Microsoft-Windows-COM-DTC-Setup" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-com-dtc-setup/microsoft-windows-com-dtc-setup/settings"/>
            <component displayname="Microsoft-Windows-COM-ComPlus-Setup" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-com-complus-setup/microsoft-windows-com-complus-setup/settings"/>
            <component displayname="Microsoft-Windows-COM-Base" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-com-base/microsoft-windows-com-base/settings"/>
            <component displayname="Microsoft-Windows-CAPI2-certs" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-capi2-certs/microsoft-windows-capi2-certs/settings"/>
          </component>
        </component>
        <component displayname="Accessibility" migrate="yes" ID="accessibility">
          <component displayname="Accessibility Settings" migrate="yes" ID="accessibility\accessibility_settings">
            <component displayname="Microsoft-Windows-accessibilitycpl" migrate="yes" ID="http://www.microsoft.com/migration/1.0/migxmlext/cmi/microsoft-windows-accessibilitycpl/microsoft-windows-accessibilitycpl/settings"/>
          </component>
        </component>
    
      </WindowsComponents>
      <Policies>
        <ErrorControl>
        </ErrorControl>
        <HardLinkStoreControl>
        </HardLinkStoreControl>
      </Policies>
      <ProfileControl>
      </ProfileControl>
    </Configuration>
    

    lundi 23 juillet 2012 12:35
  • Bonjour,

    Comme je vous ai dit, vous pouvez vérifier la syntaxe avec MigXML.xsd.

    Problèmes courants USMT

    Problème : j'ai créé un fichier custom.xml et je ne parviens pas à vérifier que la syntaxe est correcte.

    Solution : vous pouvez charger le schéma XML (
    MigXML.xsd
    ) qui est inclus avec USMT dans votre outil de création XML. (Pour consulter des exemples, reportez-vous au site de Visual Studio à l'adresse suivante : http://go.microsoft.com/fwlink/?LinkId=74513). Ensuite, chargez votre fichier XML dans cet éditeur afin de vérifier l'absence d'erreurs de syntaxe. Consultez également la rubrique XML Elements Referencepour plus d'informations sur l'utilisation des éléments.xml.

    Cordialement,

    Florin


    Florin CIUCA, MSFT  Votez! Appel à la contribution
    Nous vous prions de considérer que dans le cadre de ce forum on n’offre pas de support technique et aucune garantie de la part de Microsoft ne peut être offerte.

    lundi 23 juillet 2012 13:02
  • Non je ne crois pas.... je ne cherche pas à valider un fichier de migration (qui correspond à la solution que vous me soumettez) mais je cherche à valider le fichier de configuration config.xml

    le schéma MigXML.xsd ne valide pas ce fichier...

    lundi 23 juillet 2012 14:03
  • @Florin Ciuca, @arch21 et @Dan Bajenaru : avez vous essayez de valider le fichier config.xml avec MigXML.xsd?
    mardi 24 juillet 2012 07:01
  • Bonjour,

    Pourriez-vous vérifiér si la schéma suivante marche pour vous?

    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="Configuration">
        <xs:complexType>
          <xs:sequence>
            <xs:element type="xs:string" name="Applications"/>
            <xs:element type="xs:string" name="Documents"/>
            <xs:element name="WindowsComponents">
              <xs:complexType>
                <xs:sequence>
                  <xs:element name="component" maxOccurs="unbounded" minOccurs="0">
                    <xs:complexType mixed="true">
                      <xs:sequence>
                        <xs:element name="component" maxOccurs="unbounded" minOccurs="0">
                          <xs:complexType mixed="true">
                            <xs:sequence>
                              <xs:element name="component" maxOccurs="unbounded" minOccurs="0">
                                <xs:complexType>
                                  <xs:simpleContent>
                                    <xs:extension base="xs:string">
                                      <xs:attribute type="xs:string" name="displayname" use="optional"/>
                                      <xs:attribute type="xs:string" name="migrate" use="optional"/>
                                      <xs:attribute type="xs:anyURI" name="ID" use="optional"/>
                                    </xs:extension>
                                  </xs:simpleContent>
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                            <xs:attribute type="xs:string" name="displayname" use="optional"/>
                            <xs:attribute type="xs:string" name="migrate" use="optional"/>
                            <xs:attribute type="xs:string" name="ID" use="optional"/>
                          </xs:complexType>
                        </xs:element>
                      </xs:sequence>
                      <xs:attribute type="xs:string" name="displayname" use="optional"/>
                      <xs:attribute type="xs:string" name="migrate" use="optional"/>
                      <xs:attribute type="xs:string" name="ID" use="optional"/>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element name="Policies">
              <xs:complexType>
                <xs:sequence>
                  <xs:element type="xs:string" name="ErrorControl">
                    <xs:annotation>
                      <xs:documentation><![CDATA[Example:
    
              <fileError>
                <nonFatal errorCode="33">* [*]</nonFatal>
                <fatal errorCode="any">C:\Users\* [*]</fatal>
              </fileError>
              <registryError>
                <nonFatal errorCode="5">* [*]</nonFatal>
              </registryError>]]></xs:documentation>
                    </xs:annotation>
                  </xs:element>
                  <xs:element type="xs:string" name="HardLinkStoreControl">
                    <xs:annotation>
                      <xs:documentation><![CDATA[Example:
    
              <fileLocked>
                <createHardLink>c:\Users\* [*]</createHardLink>
                <errorHardLink>C:\* [*]</errorHardLink>
              </fileLocked>]]></xs:documentation>
                    </xs:annotation>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
            <xs:element type="xs:string" name="ProfileControl">
              <xs:annotation>
                <xs:documentation><![CDATA[Example:
    
              <localGroups>
                <mappings>
                  <changeGroup from="Administrators" to="Users" appliesTo="MigratedUsers">
                    <include>
                      <pattern>DomainName1\Username</pattern>
                    </include>
                    <exclude>
                      <pattern>DomainName2\Username</pattern>
                    </exclude>
                  </changeGroup>
                </mappings>
              </localGroups>]]></xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>

    Cordialement,

    Florin


    Florin CIUCA, MSFT  Votez! Appel à la contribution
    Nous vous prions de considérer que dans le cadre de ce forum on n’offre pas de support technique et aucune garantie de la part de Microsoft ne peut être offerte.

    mardi 24 juillet 2012 12:36
  • Non, la validation n'est pas correcte :

    "L'élément 'Documents' ne peut pas contenir un élément enfant 'component' car le modèle de contenu de l'élément parent est texte seul."

    Je me suis créer mon propre modèle xsd :

    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType name="componentType">
    	<xs:sequence minOccurs="0">
    	  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    	  </xs:element>
    	</xs:sequence>
    	<xs:attribute name="displayname" type="xs:string" use="required" />
    	<xs:attribute name="migrate" type="xs:string" use="required" />
    	<xs:attribute name="ID" type="xs:string" use="required" />
      </xs:complexType>
      
      <xs:element name="Configuration">
    	<xs:complexType>
    	  <xs:sequence>
    		<xs:element name="Applications">
    		  <xs:complexType>
    			<xs:sequence minOccurs="0">
    			  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    			  </xs:element>
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="Documents">
    		  <xs:complexType>
    			<xs:sequence minOccurs="0">
    			  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    			  </xs:element>
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="WindowsComponents">
    		  <xs:complexType>
    			<xs:sequence minOccurs="0">
    			  <xs:element maxOccurs="unbounded" name="component" type="componentType">
    			  </xs:element>
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="Policies">
    		  <xs:complexType>
    			<xs:sequence>
    			  <xs:element name="ErrorControl" type="xs:string" />
    			  <xs:element name="HardLinkStoreControl" type="xs:string" />
    			</xs:sequence>
    		  </xs:complexType>
    		</xs:element>
    		<xs:element name="ProfileControl" type="xs:string" />
    	  </xs:sequence>
    	</xs:complexType>
      </xs:element>
    </xs:schema>

    Mais je suis pas sûr que tout soit correct notament pour les noeuds Policies et ProfileControl

    • Marqué comme réponse Florin Ciuca mercredi 25 juillet 2012 09:27
    mardi 24 juillet 2012 12:47