Re: [xml] how to read from network by xmlReadFile



On Thu, 2004-11-25 at 08:55 +0900, ääåå wrote:
In a message dated Wed, 24 Nov 2004 19:56:30 +0900,
 <veillard redhat com> wrote:
[...]
veillard>> but, error message (fail to load HTTP resource) returns.
veillard>
veillard>  Works for me
veillard>
veillard>paphio:~ -> python
veillard>Python 2.2.3 (#1, Aug  8 2003, 08:44:02)
veillard>[GCC 3.2.3 20030502 (Red Hat Linux 3.2.3-13)] on linux2
veillard>Type "help", "copyright", "credits" or "license" for more information.
veillard>>>> import libxml2
veillard>>>> doc = libxml2.readFile('http://veillard.com/test.xml', None, 0)
veillard>>>> doc.serialize()
veillard>'<?xml version="1.0" encoding="iso-8859-1"?>\n<doc/>\n'
veillard>>>>
veillard>
veillard>either your libxml2 is compiled without HTTP support, or the HTTP

Is Supporting HTTP optional?
My. platform is gentoo. and I do nothing to libxml2, but emerge them.

A simple way to check if you have HTTP support built in is to look at
the output of 'xmllint --version'; the output should mention HTTP there.

Cheers,
Malcolm





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