Die folgenden Zeilen von Code-Snippet auf der InfoPath-XML Datensatz aktualisieren(Datei)
SPWeb _web = SPContext.Current.Web; SPList _list = _web.Lists[“SampleFormLib”];
MemoryStream myInStream = new MemoryStream(item.File.OpenBinary()); XmlTextReader reader = new XmlTextReader(myInStream);
XmlDocument doc = new XmlDocument(); doc.Load(Leser);
reader.Close(); myInStream.Close();
XmlNamespaceManager NamespaceManager = new XmlNamespaceManager(doc.NameTable); nameSpaceManager.AddNamespace(“meine”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“meine:Status”, NamespaceManager).InnerText = “Gespeichert”; […]