I have and datable and a column of string data type in that column i put content of type ddl some like
- create table
- create view
create stored procedure
dt.columns("content") = "create procedure ...etc"
that work ok,
the problem is when i need recovery the content like xml. Now i do that with
Dim xmlcontent = dt.DataSet.GetXml().ToString()
that return a xml like
<NewDataSet>
<Application_table>
<ID>PV</ID>
<NAme>dbo.uvw_Sample</Nombre>
<Content>/*
Run this script on SQL Server 2008 or later. There may be flaws if running on earlier versions of SQL Server.
*/
Create View...
...
</Content>
</Application_table>
</NewDataSet>
the exception is
XML parsing: line 5349, character 59, illegal xml character
i think the content in column content should for example change "<" for "<"
or better specifiy the content like cdata
So I want to specify that the serialization of the column be as CDATA. Anyone know if there is way to do it?