Re: [xml] Reading a file over network

On Mon, Oct 30, 2006 at 01:30:22AM +0100, Giorgio Calderone <gcalderone neomedia it> wrote:
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(...))

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.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
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]