[Mono-list] Validating an XML document

Loren Bandiera lorenb at mmgsecurity.com
Mon Dec 11 11:29:59 EST 2006


> Hmm, ok, I will dig into that half of megabytes of schemas when I have
> enough time to feel like doing that.

Okay, I've got a much simpler test:
http://dev.mmgsecurity.com/downloads/testing/simple-test.zip

The document should be invalid.

When I run it under Windows/MS.NET:

C:\testing>main Product.xml
Here in OnValidationEvent
The 'ProductIDAAA2' attribute is not declared.
Here in OnValidationEvent
The required attribute 'ProductID' is missing.
Document is invalid

When I run it under Linux/Mono:

$ ./main.exe Product.xml
Document is valid

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




More information about the Mono-list mailing list