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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=80231 --- shadow/80231 2006-12-11 19:01:32.000000000 -0500 +++ shadow/80231.tmp.23477 2006-12-11 19:01:32.000000000 -0500 @@ -0,0 +1,52 @@ +Bug#: 80231 +Product: Mono: Class Libraries +Version: 1.2 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: Sys.XML +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: NullReferenceException in DTDValidatingReader.FilterNormalization + +NullReferenceException in DTDValidatingReader.FilterNormalization + +Using 'XmlReader' with ValidationType.DTD and a XmlResolver to provide +access to the DTD file. The XML document contains an element with an +undefined attribute. When run on MSFT v2.0.50727 CLR, this fails +(correctly) with: + System.Xml.Schema.XmlSchemaException "The 'xxxsize' attribute is not +declared." + +However with Mono 1.2.2.1 (mono-1.2.2.1-gtksharp-2.8.3-win32-0.exe) it +always fails with the following: + Unhandled Exception: System.NullReferenceException: Object reference not +set to an instance of an object + at Mono.Xml.DTDValidatingReader.FilterNormalization (System.String +attrName, System.String rawValue) [0x00000] + at Mono.Xml.DTDValidatingReader.DtdValidateAttributes +(Mono.Xml.DTDAttListDeclaration decl, Boolean validate) [0x00000] + at Mono.Xml.DTDValidatingReader.ValidateAttributes +(Mono.Xml.DTDAttListDeclaration decl, Boolean validate) [0x00000] + at Mono.Xml.DTDValidatingReader.ProcessStartElement () [0x00000] + at Mono.Xml.DTDValidatingReader.ProcessContent () [0x00000] + at Mono.Xml.DTDValidatingReader.ReadContent () [0x00000] + at Mono.Xml.DTDValidatingReader.Read () [0x00000] + at System.Xml.XmlValidatingReader.Read () [0x00000] + at Mono.Xml.XmlFilterReader.Read () [0x00000] + at Mono.Xml.XmlFilterReader.Read () [0x00000] + at MonoBugRepro.Program.XmlReadUntilEnd (System.String xml) [0x00000] + at MonoBugRepro.Program.Main (System.String[] args) [0x00000] + +I will attach a small C# program that reproduces this. Simply run it on +the console. It simply xmlRdr.Read()'s its way through an example XML +document that produces this fault. It includes a simply hacky +XmlResolver implementation to provide access to the DTD which is included +in the source as a string. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
