De mai jos linii de fragment de cod este de a actualiza înregistrarea InfoPath xml(fișier)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = new MemoryStream(item.File.OpenBinary()); Cititor XmlTextReader = new XmlTextReader(myInStream);
XmlDocument doc = XmlDocument noi(); doc.Load(cititor);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = new XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“mea”, “HTTP://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“mea:Stare”, nameSpaceManager).Text interior = “Salvat”; […]