wchl
May 7th, 2008, 01:35 PM
Hey everyone. I have been trying to find a solution for this but i can't find it anywhere.
In my C# Windows Applications, I am getting html text from a sql server database. I need to pass this html in an xml tag. But that isn't the problem. The person receiving the xml, wants the information in the html with all the formatting, but not the htlm tags that go with it.
For example.
What I get from database and put into BodyXML node:
<BodyXML><p>Hello,</p><p>I have a question bla bla bla</p><p>Any hints</p><p>Regards,</p><p>Klaus</p></BodyXML>
What the receiver of the XML wants in the BodyXML node:
<BodyXML>Hello,
I have a question bla bla bla
Any hintsRegards,
Klaus</BodyXML>
Basically, he wants an executed HTML with all the formatting in the xml node. how do i do this in C# before I assign it to the XML?
Right now I am just getting the HTML from the database and putting it in the XML node, HTML tags and all.
Any help would be great. thanks.
In my C# Windows Applications, I am getting html text from a sql server database. I need to pass this html in an xml tag. But that isn't the problem. The person receiving the xml, wants the information in the html with all the formatting, but not the htlm tags that go with it.
For example.
What I get from database and put into BodyXML node:
<BodyXML><p>Hello,</p><p>I have a question bla bla bla</p><p>Any hints</p><p>Regards,</p><p>Klaus</p></BodyXML>
What the receiver of the XML wants in the BodyXML node:
<BodyXML>Hello,
I have a question bla bla bla
Any hintsRegards,
Klaus</BodyXML>
Basically, he wants an executed HTML with all the formatting in the xml node. how do i do this in C# before I assign it to the XML?
Right now I am just getting the HTML from the database and putting it in the XML node, HTML tags and all.
Any help would be great. thanks.