Generating a doctype declaration with for xml explicit

  • Is there a way to generate a doctype declaration in FOR XML EXPLICIT query?

  • This was removed by the editor as SPAM

  • ..maybe something like this :

    create procedure test as

    begin

    select top 10 *

    from mytable

    for xml explicit

    end

     

    Cheers

    R

  • Actually I know how to generate the xml explicit file, but it starts with the root element. I need a file that with the following preceding the root element.

    I know I can prepend it to the xml string that comes from the xml explicit query, but was wondering if there was a way to specify it as part of the query.

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

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