[lxml-dev] Yet (another) XML-verifier utility, Xpectador

Hi, I just implemented an XML-verifier utility for the purpose of my work. It's written in python, and uses lxml library. With pleasure I'd like to share with you; hopefully you will find it useful. Basically it allows you to state your expectations over "what should appear" and "what should not appear" in the XML-document that you'd like to validate, using the same format as that XML-document-to-be-verified. I make the source code available here: http://www.box.net/shared/5hs5ynq75k (a .py file) -- just three functions that make up the recursive checkings. More info is available at: http://jananuraga.blogspot.com/2008/12/xpectador-10.html Feel free to use and modify it under creative-common attribution generic 2.5 license: http://creativecommons.org/licenses/by/2.5/ . At least please put a link to my blog in your version / port of xpectador. Saludos, Raka

Hi, I Putu Alberto Lee wrote:
I just implemented an XML-verifier utility for the purpose of my work. It's written in python, and uses lxml library.
Basically it allows you to state your expectations over "what should appear" and "what should not appear" in the XML-document that you'd like to validate, using the same format as that XML-document-to-be-verified.
Have you looked at examplotron as a schema language? It looks a bit like what you are doing here. http://examplotron.org/ You can also use it with xml as it's implemented in XSLT. Stefan
participants (2)
-
I Putu Alberto Lee
-
Stefan Behnel