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

I Putu Alberto Lee putualbertolee at yahoo.com
Wed Dec 10 20:39:12 CET 2008


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



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://codespeak.net/pipermail/lxml-dev/attachments/20081210/7a0b821f/attachment-0001.htm 


More information about the lxml-dev mailing list