.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

CDataSection Bug

Posted By:      Posted Date: September 13, 2010    Points: 0   Category :.NET Framework
ok I have a cdata section works just fine but it put <XmlNode></XmlNode> tags in the xml by default how do I remove that?!?!!?     [XmlIgnore] public string Body { get; set; } public XmlNode[] doc_body { get { var blankDoc = new XmlDocument(); return new XmlNode[] { blankDoc.CreateCDataSection(Body) }; } set { if (value == null) { Body = string.Empty; return; } if (value.Length != 1) { throw new InvalidOperationException( String.Format( "Invalid array length {0}", value.Length)); } } }   this returns me data in this format....     <doc_body> <XmlNode><![CDATA[<div id="be-doc-text"><P> The Atlanta Journal-Constitution Knight Ridder/Tribune Business News </P><P> Apr. 12--SYMPHONY CENTER OFFICIALLY ON THE WAY: Atlanta's next skyscraper, Symphony Center, is now an official project. </P><P> The city of Atlanta filed plans last week for the 41-story building, located on the northwest corner of Peachtree Street at 14th Street. Because it's so large, the project must be approved by the Georgia Regional Transportation Authority and the Atlanta Regional Commission. </P><P> Plans call for a maximum of 836,000 &hellip; </P></div>]]></XmlNode> </doc

View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend