title: How do I use Sitecore.Data.Serialization.Manager.LoadItem(path,LoadOptions) to restore a item to Sitecore?
body: <p>I am trying to use the sitecore API to serialize and restore sitecore items.  I have created a WCF app to retrieve an Item name given a ID or sitecore path (/sitecore/content/home), retrieve a list of the names of the items children give an id or path.  I can also Serialize the content tree.</p>
  
  <pre><code>    public void BackupItemTree(string id)
      {
          Database db = Sitecore.Configuration.Factory.GetDatabase("master");
          Item itm = db.GetItem(id);
  
          Sitecore.Data.Serialization.Manager.DumpTree(itm);
      }
  </code></pre>
  
  <p>The above code works great.  After running it can see that the content tree has been serialized.</p>
  
  <p>However when I try to restore the serialized items useing the following:</p>
  
  <pre><code>    public void RestoreItemTree(string path)
      {
          try
          {
              using (new Sitecore.SecurityModel.SecurityDisabler())
              {
                  Database db = Sitecore.Configuration.Factory.GetDatabase("master");
                  Data.Serialization.LoadOptions opt = new Data.Serialization.LoadOptions(db);
                  opt.ForceUpdate = true;
  
                  Sitecore.Data.Serialization.Manager.LoadItem(path, opt);
                  //Sitecore.Data.Serialization.Manager.LoadTree(path, opt);
              }
          }
          catch (Exception ex)
          {
              throw ex;
          }
      }
  </code></pre>
  
  <p>With this code I get no errors.  It runs, but if I check SiteCore it didn't do anything.  I have tested using the Office Core example.  The path I sent in, which might be the issue is:</p>
  
  <p>C:\inetpub\wwwroot\sitecoretest\Data\serialization\master\sitecore\content\Home\Standard-Items\Teasers\Our-Clients.item</p>
  
  <p>and </p>
  
  <p>C:\inetpub\wwwroot\sitecorebfahnestockinet\Data\serialization\master\sitecore\content\Home\Standard-Items\Teasers\Our-Clients</p>
  
  <p>Neither seems to do anything.  I changed the teaser title of the item and am trying to restore to before the but every time the change is still present.</p>
  
  <p>Any help would be appreciated as the SiteCore documentation is very limited.</p>