DataSet.WriteXml

  • Thread starter Thread starter Rastko Soskic
  • Start date Start date
R

Rastko Soskic

Hello everyone.
I have table where some fields contain some html;
Now, I want to retrieve content as xml and transform it using xslt;
The quickest way is to retrieve using dataset, write xml and transform
it, right?
However, WriteXml for example, <br/> tag writes as &lt;br/&gt;
Html is not the most important but I'd like to know how to solve this
problem? Maybe I need to write html into database as series of special
characters? Advices? Suggestions? Thank you! :)

P.S. Database is Sql Server of course :)
 
Hi Rastko,

You can use HttpServerUtility.HtmlDecode, (Server.HtmlDecode), to retrieve
the html text as valid html.
 
Back
Top