Ispod linije isječak koda je da se ažuriraju rekord InfoPath xml(file)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = Novi MemoryStream(item.File.OpenBinary()); XmlTextReader čitatelj = Novi XmlTextReader(myInStream);
XmlDocument doc = novi XmlDocument(); doc.Load(čitač);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = Novi XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“moj”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“moj:Status”, nameSpaceManager).Unutarnja Tekst = “Spremljeno”; […]