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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 24 15:27:56 EDT 2007


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

           Summary: XmlDocument.Load behaving different than MS
                    implementation (Schema validation)
           Product: Mono: Class Libraries
           Version: 1.2
          Platform: LittleEndian
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.XML
        AssignedTo: atsushi at ximian.com
        ReportedBy: fbergman at u.washington.edu
         QAContact: mono-bugs at ximian.com
          Found By: ---


Description of Problem:
- using microsofts .net implementation XmlDocument.Load will take a valid XML
file and read it without complaints, even if the XML contains a reference to a
schema that is not in sync with the XML file
- using mono (last tested with 1.2.5.1) a load of an XML document will not
succeed if it disaggrees with the schema it points to. 
- this will also happen if the schema file the document points to is invalid

==> MS .net does not perform schema validation by default, mono does ...

Steps to reproduce the problem:
1. create a function with a snippet like: 
XmlDocument oDoc = new XmlDocument(); 
oDoc.Load("someFileDisagreeingWithSchema.xml"); or
oDoc.Load("someFilePointingToInvalidSchemaFile.xml");

2. run the example


Actual Results:
- mono throws exception pointing to the schema validation

Expected Results:
- accept the valid XML document and don't care about the schema :) 

How often does this happen? 
every time

Additional Information:


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