I have the following query that produces a XML message, all is well except the last element "Details" is a text field. when the message is created it looses it's formating and truncates some text. I suspect it has something to do with the arguments I am specifying for the element. any help would be grately appreciated. set nocount on SELECT 1 as tag,NULL as parent,ISNULL(CompanyName,'')as [BODY!1!CompanyName!XML],ISNULL(IssueType,'')as [BODY!1!IssueType!XML],ISNULL(NewIssueClosingDate,' ')as [BODY!1!NewIssueClosingDate!XML],ISNULL(NewISsueDAteOnOFEX,'')as [BODY!1!NewISsueDAteOnOFEX!XML],ISNULL(URL,'')as [BODY!1!URL!XML],ISNULL(Details,'')as [BODY!1!details!element!xml]FROM vNewISsues (NOLOCK)WHERE CaplinID = 4AND (Status IN ( 'PENDING') or DisplayUntildate >= getdate())and Status <> 'LIVE'for xml explicitset nocount off
P.S Does any one know any good sites or books that give cover XML functionality with SQL serverThanx in advanceOMBEdited by - omb on 08/08/2002 03:57:48