[Mono-dev] XmlTextWriter.WriteCData bug

Konstantin Triger kostat at mainsoft.com
Wed Dec 14 11:46:43 EST 2005


Hello,

 

The following code causes an exception and the attached patch fixes it.
Please approve commit.

 

static void Main(string[] args)

{

      StringBuilder sbVisible = new StringBuilder();

      XmlWriter w = new XmlTextWriter(new StringWriter(sbVisible));

      string sVal = null;

      w.WriteCData(sVal);

}

 

Regards,

Konstantin Triger

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051214/3f7d0532/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WriteCData.diff
Type: application/octet-stream
Size: 776 bytes
Desc: WriteCData.diff
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20051214/3f7d0532/attachment.obj 


More information about the Mono-devel-list mailing list