开发者

Validate XML against DTD using python on google app engine

I've got validation working on client side using lxml, but I'm not quite sure how to get it work on Google App Engine, since it doesn't have the lxml package. I tried copying the whole lxml folder and place it in the root of my Google application, but it seems like it cannot use it properly. I'm guessing it has to do with the compiled .so-files and such.

Is there a way to get lxml to work on Google App Engine? If not, is there any other librar开发者_运维技巧y that you can use to validate XML against DTD that works on Google App Engine?


Compiled C extensions (like lxml) will not work on Google App Engine.

PyXML is no longer maintained, but it does have a pure-Python XML validator. See this code snippet for an example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜