https://bugzilla.novell.com/show_bug.cgi?id=433774
Summary: Xml schema validation throws a
XmlSchemaValidationException exception because of a
fixed value
Product: Mono: Class Libraries
Version: 2.0
Platform: Macintosh
OS/Version: Windows Vista
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.XML
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: DeveloperNet
Created an attachment (id=244530)
--> (https://bugzilla.novell.com/attachment.cgi?id=244530)
Sample project
Description of Problem:
I'm trying to validate a XML document that contains an attribute on the root
element with a fixed value, with an XMl schema, but an exception is thrown when
it should be validated successfully.
Steps to reproduce the problem:
1. Create a XML schema with just a "Root" element, and an attribute of type
"double" and with fixed value "3";
2. Create a XML file with this code:
<?xml version="1.0" encoding="utf-8" ?>
<Root version="3" xmlns="http://tempuri.org/MonoTest"/>
3. Load the XML file in a XmlDocument and try to validate it with the schema.
Actual Results:
A XmlSchemaValidationException is thrown.
Expected Results:
No exception (this is what happens when running the same program with the .NET
framework).
How often does this happen?
Always.
Additional Information:
I'm attaching a sample project, with an error log in it.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs