Openxml()

  • I have an xml file like:
     
    <ROOT>

    <LINE>

            <NAME>NAME1</NAME>

            <VALUE>VALUE1</VALUE>

           <productcode>product1</productcode>

    </LINE>

    <LINE>

            <NAME>NAME2</NAME>

            <VALUE>VALUE2</VALUE>

            <productcode>product1</productcode>

    </LINE>

    </ROOT>

    and I want to load into two different tables like:
     
    table 1:
    id         name      value
    1            name1   value1
     
     

    table 2:
    id         name      value
    2           name2   value2
     
    How do I seperately load this into these two tables?
     
    Please help
     
    Kins

  • This was removed by the editor as SPAM

  • you can parse the xml into a table variable, then insert into the two different tables based on your criteria

     

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply