Change XML output hierarchy in a SELECT...FOR XML clause

  • Hi,

    I'm trying to create an XML output file with some hierarchy using a a SELECT...FOR XML clause, to group equal values in rows in the same XML node.

    I've tried with AUTO and EXPLICIT clauses but its doesn't work as I need.

    Best Regards,

    Valle

  • Hi Valle,

    you might want to read the following article http://www.sqlservercentral.com/articles/SS2K5+-+XML/2982/.

    If you have further questions please provide sample data as described in the link in my signature. Please use [ code="xml" ] tag (with removed spaces) for xml sample data.



    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]

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

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