Re: [xml] accessing xmlIO from the python api

On Wed, May 04, 2005 at 01:44:27PM -0700, Dan Mercer wrote:
On Wed, May 04, 2005 at 04:18:21PM -0400, Daniel Veillard wrote:

Is it possible to access calls like IOHTTPOpen from the python API, or is
there a mechanism for providing a callback to some other HTTP implementation?

  normal Python IO should work fine. See how the examples use
StringIO inputs.

This works well in the simple case where I just want to feed an XML document
as a StringIO object to an inputBuffer, but it doesn't help me (I think) when
that document contains xinclude or xsl:include elements that need to be handled
in some special way. 

In my case, I would like to handle resolving and retrieving the hrefs for 
includes myself rather than going through nanoHTTP.

  use the resolver override, Python example


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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