Re: [xml] xmlParseDTD with input from memory, in Python
- From: Daniel Veillard <veillard redhat com>
- To: "Fred L. Drake, Jr." <fdrake acm org>
- Cc: xml gnome org
- Subject: Re: [xml] xmlParseDTD with input from memory, in Python
- Date: Wed, 22 Sep 2004 11:51:55 -0400
On Wed, Sep 22, 2004 at 10:31:15AM -0400, Fred L. Drake, Jr. wrote:
On Tuesday 21 September 2004 05:17 pm, Daniel Veillard wrote:
> in the python bindings, but xmlIOParseDTD is not part of the automatically
> generated binding, though most of the infrastructure seems in place.
Thanks, Daniel!
For the moment, let's assume those routines get exposed at some point (I don't
have time to figure that out today, though), and I'll use a temporary file as
a workaround.
From looking at the xmllint code, it looks like I'll also need
xmlNewValidCtxt() and xmlValidateDtd() to be exposed, but quickly looking at
libxml2:
import libxml2
[n for n in dir(libxml2) if n.lower().find("valid") != -1]
I don't see anything that looks promising. Are these exposed already, or
would those need to be added as well?
Might need to be added. Or do a bit differently for the bindings.
I tried pointing Epydoc at the libxml2 Python module, and while it generated a
pile of HTML, there's not a lot there for someone that's not already familiar
with the library. The material on xmlsoft.org gives the same feeling. Are
there any introductory materials for new users for the libxml2 and libxslt
libraries?
http://xmlsoft.org/python.html
python/tests/*.py
Agreed it's far from complete.
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]