[Mono-bugs] [Bug 79620][Nor] New - Parsing XHTML doc produces NullReferenceException
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Oct 7 16:05:48 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by colin at breame.net.
http://bugzilla.ximian.com/show_bug.cgi?id=79620
--- shadow/79620 2006-10-07 16:05:48.000000000 -0400
+++ shadow/79620.tmp.16455 2006-10-07 16:05:48.000000000 -0400
@@ -0,0 +1,93 @@
+Bug#: 79620
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com
+ReportedBy: colin at breame.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Parsing XHTML doc produces NullReferenceException
+
+I have a well formed XHTML document that i'm loading with XmlDocument. e.g.
+
+new XmlDocument().LoadXml(page);
+
+And I get the exception [1]. I've done some investigation and it appears
+that ParserContext.Dtd is null. I've no idea what this means or how to fix it.
+
+Let me know if you require the (xhtml) file that caused it.
+
+[1]
+System.NullReferenceException: A null value was found where an object
+instance was required.
+ at System.Xml.XmlTextReader.ResolveEntity () [0x00053] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:595
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x002de] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:944
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
+[0x00195] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:895
+ at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader)
+[0x00033] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:814
+ at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00019]
+in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:684
+ at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00023] in
+/home/colin/src/mono-1.1.17.2/mcs/class/System.XML/System.Xml/XmlDocument.cs:707
+ at market_agent.advfn_data_t.fetch_news_body (Int64 id) [0x000ed] in
+/home/colin/confluence/market_agent_new/common/advfn_data.cs:200
More information about the mono-bugs
mailing list