Sa ibaba ang mga linya ng code snippet ay i-update ang record ng infopath xml(file)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = bagong MemoryStream(item.File.OpenBinary()); XmlTextReader reader = bagong XmlTextReader(myInStream);
XmlDocument doc = bagong XmlDocument(); doc.Load(mambabasa);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = bagong XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“ko”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“ko:Katayuan”, nameSpaceManager).Inner Text = “Nai-save na”; […]