Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4576540
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:13:14+00:00 2026-05-21T20:13:14+00:00

I have an InfoPath 2010 form that is published as a content type. I

  • 0

I have an InfoPath 2010 form that is published as a content type.
I have a SharePoint library that has this content type enabled. The SharePoint library also have major versioning enabled.

Let’s say that I have saved an instance of the form in the library and edited it multiple times so that multiple versions are created.

I need to compare 2 versions against each other to see the exact changes. Is this supported by SharePoint or should I used code for that (I am examining SPDiffUtility now)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:13:15+00:00Added an answer on May 21, 2026 at 8:13 pm

    No, SharePoint does not let you compare versions and their differences OOTB.

    As far as I can tell SPDiffUtility simply tells you the difference between two strings, but does not support versions just like that. Comparing version is still very easy:

    using (SPWeb web = new SPSite("http://sharepoint").OpenWeb())
    {
        SPList list= web.Lists["Shared Documents"];
    
        SPFile file = list.Files["mydoc.doc"];
    
        //Get all the versions
        SPFileVersionCollection fileVersionCollection = file.Versions;
    
        //Get the first version
        SPFileVersion fileVersion= fileVersionCollection[3];
    
        //Get the data
        byte [] fileBytes = version.OpenBinary();
    }
    

    Basically you have to look into the SPFile.Versions collection and compare the versions you have.

    The problem is that InfoPath stores its document as XML, so you will have to parse the XML you receive to extract all fields and see their differences – a good start for parsing the XML is to create a class file for easier access in code via xsd.exe like for example explained here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an InfoPath 2007 form that populates a drop down from a SharePoint
I have an existing InfoPath 2007 form that has some code-behind developed with VSTA.
I have an XML document (an InfoPath form) that looks similar to this: <my:ClientMaintenance
I have the following setup: Sharepoint 2010 with SQL Server and Office 2010. This
I have a InfoPath template that submits it's forms to a SharePoint server. If
Have you managed to get Aptana Studio debugging to work? I tried following this,
We have a site hosted in IIS6 that we built using the .NET 1.1
I am writing tests to test Infopath Forms to open in Form Control, my
Have noticed issue while testing iphone app that if one quickly opens/dismisses a modal
Have you seen library for flexible working with terminal(Unix like)? I want to implement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.