how to convert xml input to a table in sp

  • <root>

    <product>

    <product_id ID = "1"/>

    <product_id ID = "2"/>

    <product_id ID = "3"/>

    </product>

    <discount>

    <discount_id ID ="9"/>

    <discount_id ID ="10"/>

    </discount>

    <tax>

    <tax_id ID = "0"/>

    </tax>

    </root>

    this is my xml input to a stored procedure.

    is it possible to convert this xml to a single table like this

    Product_ID Discount_ID Tax_ID

    1 9 0

    1 10 0

    2 9 0

    2 10 0

    3 9 0

    3 10 0

    and if possible can you please give me the solution

  • Duplicate post, direct comments here: http://www.sqlservercentral.com/Forums/Topic1091056-391-1.aspx

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

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

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