Kodea snippet ildo azpitik da InfoPath xml erregistroa eguneratu(fitxategia)
SPWeb _Web = SPContext.Current.Web; SPList _zerrenda = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = MemoryStream berria(item.File.OpenBinary()); Reader XmlTextReader = XmlTextReader berria(myInStream);
XmlDocument doc = new XmlDocument(); doc.Load(reader);
reader.Close(); myInStream.Close();
XmlNamespaceManager nameSpaceManager = XmlNamespaceManager berria(doc.NameTable); nameSpaceManager.AddNamespace(“nire”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“nire:Egoera”, nameSpaceManager).Inner Idatzi = “Gordetako”; […]