[lxml-dev] Yet (another) XML-verifier utility, Xpectador
I Putu Alberto Lee
putualbertolee at yahoo.com
Wed Dec 10 21:00:28 CET 2008
Hi,
Sorry I made a mistake, the correct link to the py file is http://www.box.net/shared/u55s51p9hf
Best regards,
Raka
--- On Wed, 12/10/08, I Putu Alberto Lee <putualbertolee at yahoo.com> wrote:
From: I Putu Alberto Lee <putualbertolee at yahoo.com>
Subject: Yet (another) XML-verifier utility, Xpectador
To: lxml-dev at codespeak.net
Date: Wednesday, December 10, 2008, 2:39 PM
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/7c32de32/attachment.htm
More information about the lxml-dev
mailing list