Garisan di bawah kod coretan adalah untuk mengemas kini rekod xml InfoPath(fail)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = MemoryStream baru(item.File.OpenBinary()); Pembaca XmlTextReader = XmlTextReader baru(myInStream);
XmlDocument doc = XmlDocument baru(); doc.Load(pembaca);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = XmlNamespaceManager baru(doc.NameTable); nameSpaceManager.AddNamespace(“saya”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“saya:Status”, nameSpaceManager).Teks Inner = “Disimpan”; […]