I am trying to update one field in a record on a SharePoint list. I am using the code below to do this. The thing is it is tossing an error:
Unexpected end of file has occurred. The following elements are not closed: Method. Line 1, position 29.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: Method. Line 1, position 29.
Line 792: /* Update the inspire field to exported*/
Line 793: batchElement.InnerXml += "<Method ID='1' Cmd='Update'>";
Line 794: batchElement.InnerXml += "<Field Name='ID'>6</Field>";
Line 795: batchElement.InnerXml += "<Field Name='inpsire'>new</Field>";
As I understand; I create a method and then cmd update. I then give the ID of the record th
View Complete Post