This is a discussion on How to write contents as CDATA in XML using c#? within the C# Programming forums, part of the Software Development category; How to write contents as CDATA in XML using c#? You can add the CDATA section using the XmlDocument's ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| How to write contents as CDATA in XML using c#? You can add the CDATA section using the XmlDocument's CreateCDataSection method. See the below example in C#: XmlDocument doc = new XmlDocument(); doc.LoadXml( docContent ); XmlNode cdataParent = doc.SelectSingleNode( "path to the node where you want to add the email text" ); cdataParent.AppendChild( doc.CreateCDataSection( cdataContent ) ); |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to reload or refresh the contents in div tag ? | sureshbabu | PHP Programming | 1 | 07-20-2007 07:18 AM |
| What’s the difference between Response.Write() andResponse.Output.Write()? | prasath | ASP and ASP.NET Programming | 1 | 07-19-2007 03:56 AM |
| Cdata | raj | XML and SOAP | 0 | 07-17-2007 12:11 AM |
| What are all the contents in test plan? | itbarota | Software Testing | 0 | 07-16-2007 12:33 AM |
| CDATA Section in XML | vigneshgets | XML and SOAP | 1 | 05-30-2007 12:00 PM |