Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.