XML as Datasource - InfoPath Dev
in

InfoPath Dev

XML as Datasource

Last post 11-09-2005 02:34 PM by Agni Jonnalagadda. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-08-2005 08:03 PM

    XML as Datasource

    Hi there,

    I have an XML file which stores data for all sites (close to 500). What i want to achieve is to store each <Site> as a separate form within a form library within Sharepoint, is there an easy way of separating this xml into multiple files (one per site?)

    This is just a sample, <Sites> have another 20 attributes.
    <SITES>
    <ID>289</ID>
    <PLANT_KEY>2645267</PLANT_KEY>
    </SITES>
    <SITES>
    <ID>290</ID>
    <PLANT_KEY>2645703</PLANT_KEY>
    </SITES>
  • 11-09-2005 02:34 PM In reply to

    Hi,
    Easy way that I can suggest here is
    Select "SITES" nodes list,(using selectNodes() method)
    Iterate through the Nodes list,(foreach sitesNode in SitesNodes)
    Submit each node as an XML file to sharepoint.(submit siteNode to sharepoint)

    I hope this what you are looking for!

    Agni
    InfoPath Dev India
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.