A continuación liñas de texto de código para actualizar o rexistro infopath xml(ficheiro)
SPWeb _Web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = new MemoryStream(item.File.OpenBinary()); Lector XmlTextReader = new XmlTextReader(myInStream);
XmlDocument doc = new XmlDocument(); doc.Load(lector);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = new XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“meu”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“meu:Estado”, nameSpaceManager).Inner Text = “Salvo”; […]