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=82183 --- shadow/82183 2007-07-25 06:08:16.000000000 -0400 +++ shadow/82183.tmp.10393 2007-07-28 17:52:33.000000000 -0400 @@ -1,13 +1,13 @@ Bug#: 82183 Product: Mono: Class Libraries Version: 1.2 OS: All OS Details: -Status: RESOLVED -Resolution: FIXED +Status: REOPENED +Resolution: Severity: Unknown Priority: Normal Component: Sys.XML AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] @@ -46,6 +46,80 @@ r.Read (); } } ------- Additional Comments From [EMAIL PROTECTED] 2007-07-25 06:08 ------- Fixed in svn. + +------- Additional Comments From [EMAIL PROTECTED] 2007-07-28 17:52 ------- +I was running into the same issue as Gert pointed out in the original +bug report, and am now getting slightly further. I next run into an +issue when there is an XML comment as the first item in a sequence. +For example, my xsd defines an "element_list" which contains a +sequence of "element" items. For example, this is what the original +xml file might contain: + +<element_list> + <!-- blah blah blah --> + <element /> + + <!-- blah blah --> + <element /> +</element_list> + +When trying to read through the XML doc using a validating parser, I +get the following error: + +System.Xml.Schema.XmlSchemaValidationException: XmlSchema error: Not +allowed character content was found. XML Line 12, Position 16. + +Here is the pertinent pieces of the stack trace: + + at System.Xml.XmlReaderSettings.OnValidationError (System.Object o, +System.Xml.Schema.ValidationEventArgs e) [0x00000] + at +Mono.Xml.Schema.XmlSchemaValidatingReader+<>c__CompilerGenerated0.<XmlSchemaValidatingReader>c__7 +(System.Object o, System.Xml.Schema.ValidationEventArgs e) [0x00000] + at System.Xml.Schema.XmlSchemaValidator.HandleError +(System.Xml.Schema.XmlSchemaValidationException exception, Boolean +isWarning) [0x00000] + at System.Xml.Schema.XmlSchemaValidator.HandleError (System.String +message, System.Exception innerException, Boolean isWarning) [0x00000] + at System.Xml.Schema.XmlSchemaValidator.HandleError (System.String +message) [0x00000] + at System.Xml.Schema.XmlSchemaValidator.ValidateText +(System.Xml.Schema.XmlValueGetter getter) [0x00000] + at System.Xml.Schema.XmlSchemaValidator.ValidateWhitespace +(System.Xml.Schema.XmlValueGetter getter) [0x00000] + at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x00000] + at Mono.Xml.XPath.DTMXPathDocumentBuilder2.Read () [0x00000] + at Mono.Xml.XPath.DTMXPathDocumentBuilder2.Compile () [0x00000] + at Mono.Xml.XPath.DTMXPathDocumentBuilder2.Init +(System.Xml.XmlReader reader, XmlSpace space, Int32 defaultCapacity) +[0x00000] + at Mono.Xml.XPath.DTMXPathDocumentBuilder2..ctor +(System.Xml.XmlReader reader, XmlSpace space, Int32 defaultCapacity) +[0x00000] + at Mono.Xml.XPath.DTMXPathDocumentBuilder2..ctor +(System.Xml.XmlReader reader, XmlSpace space) [0x00000] + at System.Xml.XPath.XPathDocument.Initialize (System.Xml.XmlReader +reader, XmlSpace space) [0x00000] + at System.Xml.XPath.XPathDocument..ctor (System.Xml.XmlReader +reader, XmlSpace space) [0x00000] + at System.Xml.XPath.XPathDocument..ctor (System.Xml.XmlReader +reader) [0x00000] + + +The interesting thing, is that if I simply modify the instance +document above to look like the following, everything works as +expected (notice that the first xml comment is gone): + +<element_list> + <element /> + + <!-- blah blah --> + <element /> +</element_list> + + +Thanks, +Mike _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
