Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Create xml file from InfoPath (xsn) file

Create xml file from InfoPath (xsn) file

Scheduled Pinned Locked Moved C#
csharpxmlquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Phrone
    wrote on last edited by
    #1

    I have an InfoPath file and want to create an xml file of it using C#. The xml file should look exactly like the one that would be saved if I opened the form with InfoPath and saved it as xml. Can that be done somehow with C#? I've tried to rename the xsn file to cab, extract template.xml and sampledata.xml, but they are nothing like the xml file that is created from InfoPath.

    S 1 Reply Last reply
    0
    • P Phrone

      I have an InfoPath file and want to create an xml file of it using C#. The xml file should look exactly like the one that would be saved if I opened the form with InfoPath and saved it as xml. Can that be done somehow with C#? I've tried to rename the xsn file to cab, extract template.xml and sampledata.xml, but they are nothing like the xml file that is created from InfoPath.

      S Offline
      S Offline
      Spacix One
      wrote on last edited by
      #2

      Start here: http://msdn2.microsoft.com/en-us/library/bb448854.aspx Then the following will be useful too. http://www.microsoft.com/downloads/info.aspx?na=47&p=1&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=ad0b72fb-4a1d-4c52-bdb5-7dd7e816d046&u=details.aspx%3Ffamilyid%3D8D46C01F-E3F6-4069-869D-90B8B096B556%26displaylang%3Den http://www.microsoft.com/downloads/details.aspx?familyid=ad0b72fb-4a1d-4c52-bdb5-7dd7e816d046&displaylang=en

      P 1 Reply Last reply
      0
      • S Spacix One

        Start here: http://msdn2.microsoft.com/en-us/library/bb448854.aspx Then the following will be useful too. http://www.microsoft.com/downloads/info.aspx?na=47&p=1&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=ad0b72fb-4a1d-4c52-bdb5-7dd7e816d046&u=details.aspx%3Ffamilyid%3D8D46C01F-E3F6-4069-869D-90B8B096B556%26displaylang%3Den http://www.microsoft.com/downloads/details.aspx?familyid=ad0b72fb-4a1d-4c52-bdb5-7dd7e816d046&displaylang=en

        P Offline
        P Offline
        Phrone
        wrote on last edited by
        #3

        Thanks, it looks interesting. Are you sure that it works for InfoPath files? It's a part of MS Office, but it is not listed. Have you or anyone else done this before? Would be nice to see some examples on how to make the xml file.

        S 1 Reply Last reply
        0
        • P Phrone

          Thanks, it looks interesting. Are you sure that it works for InfoPath files? It's a part of MS Office, but it is not listed. Have you or anyone else done this before? Would be nice to see some examples on how to make the xml file.

          S Offline
          S Offline
          Spacix One
          wrote on last edited by
          #4

          Not done it for infopath files but for excel .xlsx format... there is an article on code project about openXML file formats that was helpful with the excel stuff http://www.codeproject.com/office/OpenXML.asp[^]

          P 1 Reply Last reply
          0
          • S Spacix One

            Not done it for infopath files but for excel .xlsx format... there is an article on code project about openXML file formats that was helpful with the excel stuff http://www.codeproject.com/office/OpenXML.asp[^]

            P Offline
            P Offline
            Phrone
            wrote on last edited by
            #5

            I'll take a look at it. But I'm not to hopefull that it works with InfoPath forms because according to Microsoft it only works with: * This download works with the following Office applications: o Microsoft Office Excel 2007 o Microsoft Office PowerPoint 2007 o Microsoft Office Word 2007

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups