InfoPath 2007 Export to XML? - InfoPath Dev
in

InfoPath Dev

InfoPath 2007 Export to XML?

Last post 01-22-2011 11:48 PM by HamishAhern. 8 replies.
Page 1 of 1 (9 items)
Sort Posts: Previous Next
  • 11-17-2008 09:05 AM

    • JeffT
    • Not Ranked
    • Joined on 11-17-2008
    • Posts 4

    InfoPath 2007 Export to XML?

    InfoPathdev,

    I need to be able to export selected data from an InfoPath form to XML, similar to how the Export ot Excel works. I downloaded the InfoPath 2007 trial, which has an export option of Find add-ins for other file formats... however I get an error message when clicking on this option (There is a problem with one or more installed help files. Please repair your Office installation and try again.). I have repaired the installation, uninstalled the trial and reinstalled, and still get the same error.

    Can InfoPath 2007 selectively export data in an XML format? If so, how is this accomplished?

     Thank you.

    Jeff

  • 11-17-2008 11:58 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: InfoPath 2007 Export to XML?

     Hello Welcome to the Forums,

    We can submit the data in the format of .xml in local folder or SharePoint. We can export the data to excel what are the data available in that view. We can't export the only selected data from InfoPath form to xml. For this we have to create one view and we can export only those fields.

     You might not repaired the installation successfully for this first you have to remove the existing InfoPath and re install it again.

  • 11-17-2008 01:29 PM In reply to

    • JeffT
    • Not Ranked
    • Joined on 11-17-2008
    • Posts 4

    Re: InfoPath 2007 Export to XML?

    Thank you for your response, Shiva.

     I interpret from your response that the InfoPath form can have only one view, as opposed to multiple views. Is this correct?

     Best Regards,

     Jeff

  • 11-17-2008 09:45 PM In reply to

    Re: InfoPath 2007 Export to XML?

    Hi,

    You can create multiple views in an InfoPath form.
    What you have understood is wrong and what Shiva said is you can create another view with what all the fields you want to export to XML.And you can export that total view.

    Follow the below steps to create a view:
    1.View --> Task Pane
    2.Under Design tasks
    3.Click views.
    4.Under Actions click ‘Add a New View’.

    Here you copy the fields which you want to export from default view and paste in the new view added.Now you can export the total new view.

  • 11-18-2008 07:54 AM In reply to

    • JeffT
    • Not Ranked
    • Joined on 11-17-2008
    • Posts 4

    Re: InfoPath 2007 Export to XML?

    Thanks HK for the input.

    The form I developed and are currently working with has 2 views.

    The question for me remains, will InfoPath 2007 allow exporting XML on an individual view as it allows exporting to Excel on an individual view?

    Does anybody know whether this is the case? Please see my previous posts for more background.

    Thanks again.

    Jeff

  • 11-18-2008 08:26 AM In reply to

    Re: InfoPath 2007 Export to XML?

    If you click the link in the Export window in IP 2007, it takes you here. I only see one conversion tool in the marketplace, and it is to convert other things into IP forms. You may end up needing to write your own -- add code to the form that writes an xml file with specific values from your form....

    Hilary Stoupa

  • 11-18-2008 12:29 PM In reply to

    • JeffT
    • Not Ranked
    • Joined on 11-17-2008
    • Posts 4

    Re: InfoPath 2007 Export to XML?

    Hilary,

    That seems to be exactly what I needed to know. Thank you.

    This tells me that there currently is no XML export, and the only source of the data in a form that is in XML format is the submitted form itself.

    Now I can put that to rest and move forward on alternative solutions. Thanks again!

    Jeff

  • 11-20-2008 12:04 PM In reply to

    Re: InfoPath 2007 Export to XML?

    Jeff, instead of "exporting" you can add a new data connection that Submits any data you choose to another system, i.e, a database, webservice, sharepoint document library, or email message

    HTH

    Dean

    Dean
    Charlotte, NC
  • 01-22-2011 11:48 PM In reply to

    Re: InfoPath 2007 Export to XML?

    whats wrong with doing it like this?  InfoPath itself is just xml, xsd, xsf and xpath,  exporting as xml is as simple as tieing your shoelaces. you can even export just portions, or in whole...

    XPathNavigator myRoot = MainDataSource.CreateNavigator();
    XPathNavigator node = myRoot.SelectSingleNode("/myFields", NamespaceManager);
    StreamWriter sw = new StreamWriter(newFileName);
    sw.Write(node.OuterXml.ToString());
    sw.Flush();
    sw.Close();

Page 1 of 1 (9 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.