Re: lxml precaching DTD for document verification.

2011-11-28 Thread Gelonida N
Thanks Stefan, On 11/28/2011 08:38 AM, Stefan Behnel wrote: > Gelonida N, 27.11.2011 18:57: >> I'd like to verify some (x)html / / html5 / xml documents from a server. >> >> These documents have a very limited number of different doc types / DTDs. >> >> So what I would like to do is to build a sm

Re: lxml precaching DTD for document verification.

2011-11-27 Thread Stefan Behnel
Gelonida N, 27.11.2011 18:57: I'd like to verify some (x)html / / html5 / xml documents from a server. These documents have a very limited number of different doc types / DTDs. So what I would like to do is to build a small DTD cache and some code, that would avoid searching the DTDs over and o

Re: lxml precaching DTD for document verification.

2011-11-27 Thread Gelonida N
On 11/27/2011 10:33 PM, John Gordon wrote: > In Roy Smith > writes: > >> In article , >> Gelonida N wrote: >> >>> I'd like to verify some (x)html / / html5 / xml documents from a server. > >> I'm sure you could roll your own validator with lxml and some DTDs, but >> you would probably sav

Re: lxml precaching DTD for document verification.

2011-11-27 Thread John Gordon
In Roy Smith writes: > In article , > Gelonida N wrote: > > > I'd like to verify some (x)html / / html5 / xml documents from a server. > I'm sure you could roll your own validator with lxml and some DTDs, but > you would probably save yourself a huge amount of effort by just using > the v

Re: lxml precaching DTD for document verification.

2011-11-27 Thread Roy Smith
In article , Gelonida N wrote: > I'd like to verify some (x)html / / html5 / xml documents from a server. I'm sure you could roll your own validator with lxml and some DTDs, but you would probably save yourself a huge amount of effort by just using the validator the W3C provides (http://vali

lxml precaching DTD for document verification.

2011-11-27 Thread Gelonida N
Hi, I'd like to verify some (x)html / / html5 / xml documents from a server. These documents have a very limited number of different doc types / DTDs. So what I would like to do is to build a small DTD cache and some code, that would avoid searching the DTDs over and over from the net. What wou