title: Updating SPFile properties using SPFile.Update()
body: <p>I'm trying to update <code>SPFile</code> properties.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>            using (SPSite oSite = new SPSite(sFileURL))
              {
                  using (SPWeb oWeb = oSite.OpenWeb())
                  {
                      oWeb.AllowUnsafeUpdates = true;
                      oFile = oWeb.GetFile(sFileURL); 
                      foreach (XmlNode xNode in oXmlDoc.FirstChild.ChildNodes)
                      {
                          oFile.Item.Properties[xNode.Name] = xNode.InnerText;
                          string itemmm =oFile.Item.Properties[xNode.Name].ToString();
  
                      }
                      oFile.Update();
                      oWeb.AllowUnsafeUpdates = false;
                  }
              }
  </code></pre>
  
  <p>The problem is that when I check the file properties in SharePoint I don't see the changes I have made.
  I was trying to add <code>AllowUnsafeUpdates = true</code> but it didn't solve the problem.</p>
  
  <p>What else can I do?</p>