• I'm not sure why those character wouldn't be properly displayed.

    I tried

    select NAME as a from @XMLTest for XML PATH('')

    and received

    <a>One¬d¦Uº</a>

    <a>Two</a>

    <a>Three</a>

    So I don't think there's any need to replace thoses special character.

    What exact output are you looking for (especially in terms of tag names)?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]