Voglio mantenere i tag html nella mia query sql quando scrivo una query per generare tag xml. Per esempio:Come si conservano i tag HTML quando si esegue una query su un xml utilizzando sql?
select '<p> this is a code</p>' as code
from table name
for xml path (''), type
uscite:
<code><p> this is a code </p> <code>
quello che dovrebbe uscita:
<code><p> this is a code </p><code>
Come posso risolvere questo problema? Grazie!
Per XML Explici io credo http://stackoverflow.com/questions/1947884/how-to-get-sql-query-to-not-escape-html-data-returned-in-query –