AW: [xml] FW: help - xmlwriter->to buffer & xmlreader from that buffer... whit libxml2



[...]
void streamFile(const char *file,ref *ref_call_p){
    xmlTextReaderPtr reader;
    int ret;
        FILE *fp;
   /*xmlBufferPtr buf;*/
 
   reader = xmlReaderForFile(file, NULL, 0);
 
_______________________________________________________________________________________
 
 /* reader = xmlReaderForMemory(&buf, sizeof(buf), NULL, MY_ENCODING, 0);*/
this should do:
        reader = xmlReaderForMemory(buf->content, buf->use, NULL, MY_ENCODING, 0);

Servus -- Alfred



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