[Mono-bugs] [Bug 336495] XmlDocument.Load behaving different than MS implementation ( Schema validation)

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 29 13:26:43 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=336495#c8





--- Comment #8 from Frank Bergmann <fbergman at u.washington.edu>  2007-10-29 11:26:43 MST ---
Hello, 

sorry for the delay ... apparently the problem still exists ... if you try to
load the file above, under ms.net everything is fine, mono however throws the
exception below. 

I don't think the error should go anywhere else, as XmlLoad was called without
any indication of the file having to pass a schema validation test. 

thanks
Frank



$ mono XmlLoad.exe copasitest.cps 
System.Xml.Schema.XmlSchemaException: XmlSchema error: Invalid particle
derivation by restriction was found. Extraneous derived particle was found.
Related schema item SourceUri: http://www.copasi.org/static/schema.xsd, Line
456, Position 10.
  at System.Xml.Schema.XmlSchemaCollection.OnValidationError (System.Object o,
System.Xml.Schema.ValidationEventArgs e) [0x00000] 
  at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_ValidationEventArgs
(object,System.Xml.Schema.ValidationEventArgs)
  at System.Xml.Schema.ValidationHandler.RaiseValidationEvent
(System.Xml.Schema.ValidationEventHandler handle, System.Exception
innerException, System.String message, System.Xml.Schema.XmlSchemaObject xsobj,
System.Object sender, System.String sourceUri, XmlSeverityType severity)
[0x00000] 
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String message,
System.Exception innerException, System.Xml.Schema.XmlSchemaObject xsobj,
System.Object sender) [0x00000] 
  at System.Xml.Schema.XmlSchemaObject.error
(System.Xml.Schema.ValidationEventHandler handle, System.String message)
[0x00000] 
  at System.Xml.Schema.XmlSchemaGroupBase.ValidateSeqRecurseMapSumCommon
(System.Xml.Schema.XmlSchemaGroupBase baseGroup,
System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema,
Boolean isLax, Boolean isMapAndSum, Boolean raiseError) [0x00000] 
  at System.Xml.Schema.XmlSchemaGroupBase.ValidateRecurse
(System.Xml.Schema.XmlSchemaGroupBase baseGroup,
System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema,
Boolean raiseError) [0x00000] 
  at System.Xml.Schema.XmlSchemaSequence.ValidateDerivationByRestriction
(System.Xml.Schema.XmlSchemaParticle baseParticle,
System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema,
Boolean raiseError) [0x00000] 
  at System.Xml.Schema.XmlSchemaComplexType.ValidateDerivationValidRestriction
(System.Xml.Schema.XmlSchemaComplexType baseType,
System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema schema)
[0x00000] 
  at System.Xml.Schema.XmlSchemaComplexType.ValidateContentModel
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] 
  at System.Xml.Schema.XmlSchemaComplexType.Validate
(System.Xml.Schema.ValidationEventHandler h, System.Xml.Schema.XmlSchema
schema) [0x00000] 
  at System.Xml.Schema.XmlSchema.Validate
(System.Xml.Schema.ValidationEventHandler handler) [0x00000] 
  at System.Xml.Schema.XmlSchemaSet.Compile () [0x00000] 
  at Mono.Xml.Schema.XsdValidatingReader.ExamineAdditionalSchema () [0x00000] 
  at Mono.Xml.Schema.XsdValidatingReader.Read () [0x00000] 
  at System.Xml.XmlValidatingReader.Read () [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 System.Xml.XmlDocument.Load (System.String filename) [0x00000] 
  at XmlLoad.Program.Main (System.String[] args) [0x00000] 


-- 
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