If you like this site, I would appreciate a gift from my wishlist.

XML-GrammarBase - wrappers for writing your own XML grammar modules

XML-GrammarBase provides some roles (known as traits in other languages) and classes (with tests) for validating and processing XML grammars, so far using RELAX NG and XSLT, but in the future other technologies in the XML ecosystem (such as DTDs or XML Schemas). It uses XML-LibXML and XML-LibXSLT under the hood but wraps them in a lot of Moo/Moose goodness.

XML-GrammarBase is part of the Web-CPAN XML-Grammar project that provides several specialised processors for XML grammars for various tasks.

Licence

XML-GrammarBase is free and open-source software (FOSS) distributed under the MIT/X11 License, a permissive, public-domain-like, software licence.