Monodoc has a bug where is crashes when you select a namespace or a doc
with two <para> tags in the remarks section.
The backtrace is this:
in <0x000c1> 00 System.Xml.XmlTextReader:ReadStartTag ()
in <0x000bb> 00 System.Xml.XmlTextReader:ReadTag ()
in <0x000ee> 00 System.Xml.XmlTextReader:ReadContent ()
in <0x0002b> 00 System.Xml.XmlTextReader:Read ()
in <0x00080> 00 System.Xml.XmlDocument:ReadNode (System.Xml.XmlReader)
in <0x00032> 00 System.Xml.XmlDocument:Load (System.Xml.XmlReader)
in <0x00081> 00 System.Xml.XmlDocument:Load (System.IO.Stream)
in <0x001de> 00 .EcmaHelpSource:RenderNamespaceLookup (string)
in <0x000f8> 00 .RootTree:RenderUrl (string)
in <0x001a5> 00 .TreeBrowser:RowActivated (object,System.EventArgs)
in <0x00067> 01 System.MulticastDelegate:invoke_void_object_EventArgs
(object,System.EventArgs)
in <0x00164> 00 GtkSharp.voidObjectSignal:voidObjectCallback
(intptr,int)
in <0x00026> 05 GtkSharp.voidObjectSignal:voidObjectCallback
(intptr,int)
in (unmanaged) 06 Gtk.Application:gtk_main ()
in <0x00004> 06 Gtk.Application:gtk_main ()
in <0x0003b> 00 .Browser:Main ()
I attach a candidate patch.
Index: XmlTextReader.cs
===================================================================
RCS file: /cvs/public/mcs/class/System.XML/System.Xml/XmlTextReader.cs,v
retrieving revision 1.52
diff -u -r1.52 XmlTextReader.cs
--- XmlTextReader.cs 4 Mar 2003 18:39:58 -0000 1.52
+++ XmlTextReader.cs 8 Mar 2003 08:50:03 -0000
@@ -1014,7 +1014,6 @@
if (haveEnteredDocument && elementStack.Count == 0 && !allowMultipleRoot)
throw ReaderError("document has terminated, cannot open new element");
- haveEnteredDocument = true;
SkipWhitespace ();
bool isEmptyElement = false;