VGuys.Thanks for your rather abrupt reply.Unfortunately all the information on that link doesn't apply to me -- its all enhancements included in 2005. If you have some specific information that will help me then I'd be most grateful for it.To Give a little more information....I've found that, for some reason in 2000, If I'm selecting a TEXT data-type (that is a container for an HTML document, but probably for any sufficient size of text) for XML output I seem to get newlines inserted into my XML at some point..For example:I have a tableCREATE TABLE #found ( [DATABASE] NVARCHAR(255) , [SCHEMA] NVARCHAR(255) , [TABLE] NVARCHAR(255) , [COLUMN] NVARCHAR(255) , [ID VALUE] INT , [TEXT] NTEXT )[/CODE]Which is populated with data in the form...[code]<DATABASENAME>, dbo, <tableName>, <columnName>, <Id>, <A block of HTML text>
What's happening when I do a (with output to a file)[CODE]SELECT * FROM #found FOR XML <AUTO / RAW>[/CODE]Is that, at some point in the resulting file a newline is inserted (probably repeatedly after a set number of characters). Because SQL server is converting all of the HTML tags into acceptable XML (for instance <p> becomes &-l-t-;-p-&-g-t-;) (minus the -), if this newline is inserted in the middle of a tag (&l<NEWLINE>t;p>) then it fails parsing later on when the software engineers want to interrogate it.Does anyone have any specific ideas?Charlie.