Re: [xml] Reading a file over network
- From: Daniel Veillard <veillard redhat com>
- To: "Giorgio Calderone <gcalderone neomedia it>" <gcalderone neomedia it>
- Cc: xml gnome org
- Subject: Re: [xml] Reading a file over network
- Date: Mon, 30 Oct 2006 03:14:42 -0500
On Mon, Oct 30, 2006 at 01:30:22AM +0100, Giorgio Calderone <gcalderone neomedia it> wrote:
Hello,
I'm trying to write an XML parser using the SAX interface with the push method.
My code looks like this:
f = fopen(filename, "r");
ctxt = xmlCreatePushParserCtxt(mySAXHandler, ...);
while (fread(...))
xmlParseChunk(...);
And it work with local files, but how can I read a file over the network ?
Maybe I should use xmlParserInputBuffer or something else ?
It seems your question is how to read data from 'the network' and
that is really not related to libxml2. Once you get the bits you push them
in tyhe exact same way to libxml2.
Now how you get your data completely depends what service you need to
address and seems out of the scope of this mailing list.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
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]