title: Scanload / loadstate USMT Gives out Error 26 with the custom XML I created that should save additional data, error says element content missing
body: <p>I'm in the middle of a migration that seems to create problems. I want to migrate all User Data with everything and use USMT for it. Per default most of the User is backed up and that works also properly. Because I also want to save some other Information for the user I startet creating a custom XML.</p>
  
  <p>The Error I get is in the output log:</p>
  
  <blockquote>
    <p>2015-02-02 13:57:18, Error                 [0x08055d] MXE Agent: Migration XML C:\WKSBackup\myfile.xml is not properly formatted. Message: element should have some content.</p>
  </blockquote>
  
  <p>I am looking now in to this problem since more then 4h and can't figure out why this is happening. I mean I was going through each element and can not see one that is empty. Any help or advice would be helpful</p>
  
  <p>Attached is the content of the XML file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;migration urlid="http://www.microsoft.com/migration/1.0/migxmlext/wallpaper"&gt;
  
      &lt;!--This component migrates wallpaper settings--&gt;
      &lt;component type="System" context="User"&gt;
          &lt;displayName&gt;Wallpapers&lt;/displayName&gt;
          &lt;role role="Settings"&gt;
              &lt;rules&gt;
                  &lt;include&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Control Panel\Desktop [Pattern]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Control Panel\Desktop [PatternUpgrade]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Control Panel\Desktop [TileWallpaper]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Control Panel\Desktop [WallPaper]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Control Panel\Desktop [WallpaperStyle]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Windows\CurrentVersion\Themes [SetupVersion]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [BackupWallpaper]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [TileWallpaper]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [Wallpaper]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [WallpaperFileTime]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [WallpaperLocalFileTime]&lt;/pattern&gt;
                          &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [WallpaperStyle]&lt;/pattern&gt;
                          &lt;content filter="MigXmlHelper.ExtractSingleFile(NULL, NULL)"&gt;
                              &lt;objectSet&gt;
                                  &lt;pattern type="Registry"&gt;HKCU\Control Panel\Desktop [WallPaper]&lt;/pattern&gt;
                                  &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [BackupWallpaper]&lt;/pattern&gt;
                                  &lt;pattern type="Registry"&gt;HKCU\Software\Microsoft\Internet Explorer\Desktop\General [Wallpaper]&lt;/pattern&gt;
                              &lt;/objectSet&gt;
                          &lt;/content&gt;
                      &lt;/objectSet&gt;
                  &lt;/include&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
      &lt;!--This component migrates wallpaper files--&gt;
      &lt;component type="Documents" context="System"&gt;
          &lt;displayName&gt;Move JPG and BMP&lt;/displayName&gt;
          &lt;role role="Data"&gt;
              &lt;rules&gt;
                  &lt;include&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt; %windir% [*.bmp]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %windir%\web\wallpaper [*.jpg]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %windir%\web\wallpaper [*.bmp]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/include&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
      &lt;!-- This component migrates appdata local office--&gt;
      &lt;component context="UserAndSystem" type="Application"&gt;
          &lt;displayName&gt;Copy AppData roaming&lt;/displayName&gt;
          &lt;role role="Data"&gt;
              &lt;rules&gt;
                  &lt;include&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Office&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Excel&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Powerpoint&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Access&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Outlook&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\OneNote&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Signatures&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Templates&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\UProof&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Visio&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %APPDATA%\Forms&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/include&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
      &lt;!--This component migrates appdata local office--&gt;
      &lt;component context="UserAndSystem" type="Application"&gt;
          &lt;displayName&gt;Copy AppData local&lt;/displayName&gt;
          &lt;role role="Data"&gt;
              &lt;rules&gt;
                  &lt;include&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Office&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Excel&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Powerpoint&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Access&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Outlook&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\OneNote&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Signatures&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Templates&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\UProof&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Visio&lt;/pattern&gt;
                          &lt;pattern type="File"&gt; %LOCALAPPDATA%\Forms&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/include&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
      &lt;!--This component migrates DesktopData--&gt;
      &lt;component context="UserAndSystem" type="Application"&gt;
          &lt;displayName&gt;Copy DesktopData&lt;/displayName&gt;
          &lt;role role="Data"&gt;
              &lt;rules&gt;
                  &lt;include&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt; %USERPROFILE%\Desktop&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/include&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
      &lt;!-- Mozilla Firefox - Modified for any version to migapp--&gt;
      &lt;component context="UserAndSystem" type="Application"&gt;
          &lt;displayName _locID="migapp.firefox3"&gt;Mozilla Firefox&lt;/displayName&gt;
          &lt;environment name="GlobalEnv" /&gt;
          &lt;environment name="GlobalEnvX64" /&gt;
          &lt;role role="Settings"&gt;
              &lt;detection&gt;
                  &lt;conditions&gt;
                      &lt;condition&gt;MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Mozilla\Mozilla Firefox *.*\bin [PathToExe]")&lt;/condition&gt;
                  &lt;/conditions&gt;
              &lt;/detection&gt;
              &lt;rules context="User"&gt;
                  &lt;destinationCleanup&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\*\Cache\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/destinationCleanup&gt;
                  &lt;include&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_APPDATA%\Mozilla\Firefox\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/include&gt;
                  &lt;exclude&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_APPDATA%\Mozilla\Firefox\Crash Reports\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_APPDATA%\Mozilla\Firefox\Profiles\*\ [pluginreg.dat]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\*\Cache\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/exclude&gt;
                  &lt;merge script="MigXmlHelper.SourcePriority()"&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_APPDATA%\Mozilla\Firefox\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Mozilla\Firefox\Profiles\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/merge&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
      &lt;!-- Google Chrome to migapp--&gt;
      &lt;component context="UserAndSystem" type="Application"&gt;
          &lt;displayName _locID="migapp.chrome1"&gt;Google Chrome&lt;/displayName&gt;
          &lt;environment name="GlobalEnv" /&gt;
          &lt;environment name="GlobalEnvX64" /&gt;
          &lt;role role="Settings"&gt;
              &lt;destinationCleanup&gt;
                  &lt;objectSet&gt;
                      &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Google\Chrome\User Data\*\Cache\* [*]&lt;/pattern&gt;
                  &lt;/objectSet&gt;
              &lt;/destinationCleanup&gt;
              &lt;detection&gt;
                  &lt;conditions&gt;
                      &lt;condition&gt;MigXmlHelper.DoesObjectExist("Registry","%HklmWowSoftware%\Google\Chrome\")&lt;/condition&gt;
                  &lt;/conditions&gt;
              &lt;/detection&gt;
              &lt;rules context="User"&gt;
                  &lt;include&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Google\Chrome\User Data\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/include&gt;
                  &lt;exclude&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Google\Chrome\User Data\*\Cache\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/exclude&gt;
                  &lt;merge script="MigXmlHelper.SourcePriority()"&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_LOCAL_APPDATA%\Google\Chrome\User Data\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/merge&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
       &lt;component type="System" context="user"&gt;
          &lt;displayName _locID="miguser.User_Exclusions"&gt;User Exclusions&lt;/displayName&gt;
          &lt;role role="Data"&gt;
              &lt;rules&gt;
                  &lt;unconditionalExclude&gt;
                       &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOP%\* [*.msi]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOP%\* [*.exe]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOP%\* [*.lnk]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOP%\* [*.lnk2]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOPDIRECTORY%\* [*.msi]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOPDIRECTORY%\* [*.exe]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOPDIRECTORY%\* [*.lnk]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DESKTOPDIRECTORY%\* [*.lnk2]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DEFAULT_DESKTOP%\* [*.msi]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DEFAULT_DESKTOP%\* [*.exe]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DEFAULT_DESKTOP%\* [*.lnk]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DEFAULT_DESKTOP%\* [*.lnk2]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DEFAULT_PROGRAMS%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DEFAULT_STARTMENU%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_DEFAULT_STARTUP%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_PROGRAMS%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_STARTMENU%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_STARTUP%\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/unconditionalExclude&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
      &lt;!-- This component EXCLUDES the following shared User specific stuff--&gt;
      &lt;component type="System" context="System"&gt;
          &lt;displayName _locID="miguser.Shared_User_Exclusions"&gt;Shared User Exclusions&lt;/displayName&gt;
          &lt;role role="Data"&gt;
              &lt;rules&gt;
                  &lt;unconditionalExclude&gt;
                      &lt;objectSet&gt;
                          &lt;pattern type="File"&gt;%CSIDL_COMMON_DESKTOPDIRECTORY%\* [*.msi]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_COMMON_DESKTOPDIRECTORY%\* [*.exe]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_COMMON_DESKTOPDIRECTORY%\* [*.lnk]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_COMMON_DESKTOPDIRECTORY%\* [*.lnk2]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_COMMON_PROGRAMS%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_COMMON_STARTMENU%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_COMMON_STARTUP%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_PROGRAMS%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_STARTMENU%\* [*]&lt;/pattern&gt;
                          &lt;pattern type="File"&gt;%CSIDL_STARTUP%\* [*]&lt;/pattern&gt;
                      &lt;/objectSet&gt;
                  &lt;/unconditionalExclude&gt;
              &lt;/rules&gt;
          &lt;/role&gt;
      &lt;/component&gt;
  
  &lt;/migration&gt;
  </code></pre>