[Mono-list] Validating an XML document

Loren Bandiera lorenb at mmgsecurity.com
Sun Dec 10 20:06:08 EST 2006


Hi,

I've been having some issues trying to validate an XML document using
XSD schemas. I think I've found a bug in Mono.

I've written a small test program which takes a file, tries to validate
it and prints the results. I've made it available here:

http://dev.mmgsecurity.com/downloads/testing/xsd-validate-test.zip

When I compile/run this code using Mono/Linux (gmcs; v1.2.2.1), I get
the following error:

XmlSchema error: There is already same named identity constraint in this
namespace. Related schema item SourceUri:
file:///home/lorenb/Projects/xsd-validate/oval-definitions-schema.xsd,
Line 34, Position 4.

Using Windows/MS.NET it doesn't complain and validates the document as
expected.

Can anyone confirm this is a bug? Or if it's not a bug, does anyone have
any suggestions for how I can make this work under Mono?

-- 
Loren Bandiera <lorenb at mmgsecurity.com>
MMG Security, Inc.



More information about the Mono-list mailing list