[Mono-bugs] [Bug 358408] New: Mono implementation of XML validating reader does not seem to support "xs: any" elements

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 3 23:45:58 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=358408


           Summary: Mono implementation of XML validating reader does not
                    seem to support "xs:any" elements
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: rcook at opiumtrail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Created an attachment (id=192971)
 --> (https://bugzilla.novell.com/attachment.cgi?id=192971)
Repro sources

See attachment for full repro for this application. When I build and run the
application I get the following unhandled exception:

Unhandled Exception: System.Xml.Schema.XmlSchemaValidationException: XmlSchema
error: Current simple type cannot accept attributes other than schema instance
namespace. XML  Line 6, Position 12.
  at System.Xml.XmlReaderSettings.OnValidationError (System.Object o,
System.Xml.Schema.ValidationEventArgs e) [0x00000] 
  at
Mono.Xml.Schema.XmlSchemaValidatingReader+<>c__CompilerGenerated0.<XmlSchemaValidatingReader>c__8
(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.ValidateAttribute (System.String
localName, System.String ns, System.Xml.Schema.XmlValueGetter attributeValue,
System.Xml.Schema.XmlSchemaInfo info) [0x00000] 
  at Mono.Xml.Schema.XmlSchemaValidatingReader.Read () [0x00000] 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
[0x00000] 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
[0x00000] 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
[0x00000] 
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader)
[0x00000] 
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] 
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] 
  at SecureFinancial.Host.Configuration.HostConfigurationManager.Load
(System.String xmlFileName, System.String xsdFileName) [0x00000] 
  at SecureFinancial.Host.Configuration.HostConfigurationManager.Main ()
[0x00000] 

The XSD file specifies that the contents of the complex type "service-manager"
can be "xs:any" which is, I believe, supposed to allow any valid XML content.

This sample compiles and runs without error under the CLR on Windows.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list