[xml] Reading a file over network



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 ? 

Thanks in advance,
Giorgio




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