[xml] xmlParseDTD with input from memory, in Python



I'm sorry if this question is answered in the documentation, but I wasn't able 
to find it.

I'm interested in validating a document against a seperate DTD (not referenced 
from the document itself), and I've found the example in the xmllint source.  
The twist, in this case, is that I have the DTD as a string in memory, and 
would like to avoid writing it to an external file if I can.

Is there some way to feed xmlParseDTD (or something equivalent) from a string 
in memory?

I'm using the Python bindings.

Thanks!


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]