Looping through XML data and replace words with table values using SQL

  • Unmask the data in XML

    Suppose there is a word 'Brilliant' in XML, look for 'Brilliant' in lookup table and get the original value 'Bill Gates' and replace it in XML.

  • Expecting help immediately.

    Thanks in Advance

  • bhanutejan (8/19/2015)


    Expecting help immediately.

    Thanks in Advance

    Send money for immediate help. This is a free forum, not a paid site. 😉

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • Use the REPLACE() function.

    This response is intentionally vague to match the vague requirements posted.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2
  • Luis Cazares (8/19/2015)


    Use the REPLACE() function.

    Heh... and here I thought I was the only one that did such a thing. KISS works wonders! 😛

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 5 posts - 1 through 4 (of 4 total)

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