chini ya mistari ya Snippet code ni update xml infopath rekodi(file)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = MemoryStream mpya(item.File.OpenBinary()); XmlTextReader msomaji = XmlTextReader mpya(myInStream);
XmlDocument doc = mpya XmlDocument(); doc.Load(msomaji);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = XmlNamespaceManager mpya(doc.NameTable); nameSpaceManager.AddNamespace(“yangu”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“yangu:Hali ya”, nameSpaceManager).Ndani Nakala = “Kuokolewa”; […]