How to get ID from XML file?

  • Hi all,

    So I have some XML files which contains person's name and addresses in their respective nodes. Sample of XML file code is below:

    <Individuals>
    <Individual>
    <uniqueid>P965</uniqueid>
    <name>John Kyle</name>
    <Addresses>
    <Address>
    <city>Tokyo</city>
    <country>Japan</country>
    </Address>
    </Addresses>
    </Individual>
    </Individuals/>

     

    Now what I am trying to do is I am fetching all the data from Individual Node to my Individual table in SQL Db and Address Node data to Address Table.

    I am using XML Source task in ssis package to achieve this.

    I have successfully fetched data from each node to desired tables, but I am trying to figure out how can I fetch data from first node to second table?

    I want to include uniqueid from first node to my second table?

    XML source only allow you to transfer single node data to a single destination.

    Please let me know if anyone knows the solution to this?

    Thanks.

  • There is a nice "Stairway" series about XML

     

     

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • This was removed by the editor as SPAM

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

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