SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to track changes from version to version in my InfoPath forms that are hosted in a SharePoint 2007 form library. Can someone walk me through what my options are? I need to understand all of my options (XML, custom code) and the high level or detailed level steps in order to implement.

Thanks in advance.

share|improve this question
From my understanding, it seems that you wish to keep track of each modification to your forms in the SharePoint 2007 form library - if my understanding is correct, you can enable the Versioning Settings inside the library setting. – Anderson Karu Nov 18 '11 at 8:11

You can achieve this through custom code.

  • First enable the Versioning for Form library. So the versions are captured in document library itself.
  • Generally the infopath documents are stored as xml document in form library. So first read the current document as one xml document and the versioned(like 1,2 version etc..) document as another xml document.
  • So now you have got two xml document. Just compare the nodes of each document then you can able to find the difference. You can use stringbuilder to cumulate the changes.

Hope it helps. :)... Recently I had done this for my project.. It's worked..

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.