[Mono-bugs] [Bug 613682] New: XML Documents validated against schema always show SchemaInfo.Validity == NotKnown
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Jun 11 15:11:45 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=613682
http://bugzilla.novell.com/show_bug.cgi?id=613682#c0
Summary: XML Documents validated against schema always show
SchemaInfo.Validity == NotKnown
Classification: Mono
Product: Mono: Class Libraries
Version: 2.6.x
Platform: x86-64
OS/Version: openSUSE 11.2
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: atsushi at ximian.com
ReportedBy: ibboard at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.1
SUSE/6.0.428.0 (KHTML, like Gecko) Chrome/6.0.428.0 Safari/534.1
This was originally sent to the Mono mailing list [1], but Atsushi Eno said I
should report it as a bug.
Basically, I have a simple test project [2] that loads a schema then loads a
document against that schema. As long as the XML is well formed and contains
the expected XML elements (i.e. does not contain a <foo> when only expecting
<bar>s) then the document's SchemaInfo.Validity property is always NotKnown.
When running the same tests with .Net on Windows XP then the documents are set
as "Valid".
Some validation must be occurring, because unexpected elements are still
causing validation errors, but all other situations (including extremely simple
and valid documents) are returning "NotKnown".
[1] http://lists.ximian.com/pipermail/mono-list/2010-June/045285.html
[2] http://ibboard.co.uk/temp/XmlTest.tar.gz
Reproducible: Always
Steps to Reproduce:
1. Run test project and observe output
or, more generally
1. Create an XML schema and a document that is valid against that schema
2. Load the schema into an XmlReaderSettings object with the correct namespace
3. Load the XML document into a variable called doc
4. Check doc.SchemaInfo.Validity
Actual Results:
doc.SchemaInfo.Validity == NotKnown
Expected Results:
doc.SchemaInfo.Validity == Valid
--
Configure bugmail: http://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