A seguir linhas de trecho de código é atualizar o registro infopath xml(arquivo)
SPWeb = _Web SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = new MemoryStream(item.File.OpenBinary()); Leitor XmlTextReader = new XmlTextReader(myInStream);
XmlDocument doc = new XmlDocument(); doc.Load(leitor);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = new XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“a minha”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“a minha:Estado”, nameSpaceManager).InnerText = “Salvo”; […]