Updating existing Custom Xml Part

Add-in Express™ Support Service
That's what is more important than anything else

Updating existing Custom Xml Part
 
ideaFocus




Posts: 63
Joined: 2013-07-19
Hi,

We are developing a COM Add-In for excel 2010. We are using custom xml part to store some changed data so that When excel file posted to Sharepoint, we can read those changes from that xml using Open XML SDK and update the Sharepoint List accordingly.

I were looking the way to update the existing Custom XML Part (content xml). Is there any way to implement that? I were looking at this article,
http://www.add-in-express.com/creating-addins-blog/2013/08/23/custom-xml-parts-word-addins/

But there, its also always creating new xml part when saving changes. I am wondering why not to update existing one because we use the ID (GUID) of the xml part in the Sharepoint for part identification.

Regards,
IdeaFocus
Posted 01 Jan, 2014 01:57:26 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hello David,

You can try to use the http://msdn.microsoft.com/en-us/library/ff838448%28v=office.14%29.aspx collection. This collection has the Add and SelectByID methods, it also has the Item property, so you will be able to add a new and update existing items.
Posted 02 Jan, 2014 07:31:05 Top