My current project is an XML wysiwyg editor, based on Composer/Firefox. It will include a RelaxNG validator and I need a library to validate values against XML Schema datatype. Fortunately, I found a such library in the mozilla trunk, in the schema-validation extension developped by Doron Rosenberg. It is used by the XForms extension.

However, I can't use the main class (nsSchemaValidator.cpp) as is because it depends on other components that i don't need. So I move all method I want (IsValid* and Validate*) to my own class.

With my own test suite, I found some bug on this methods (the schema-validation extension is still in developpement). So I fixed them, and then I proposed a patch on bugzilla.

This patch contains only few lines of code. But this is my first patch for the mozilla project and so, this is a great moment for me :-)