AW: [xml] FW: help - xmlwriter->to buffer & xmlreader from that buffer... whit libxml2
- From: "Mickautsch, Alfred" <alfred mickautsch schuler-ag com>
- To: <xml gnome org>
- Cc: "Rodrigo Cabeceiras" <rodrigo cabeceiras tvtel pt>
- Subject: AW: [xml] FW: help - xmlwriter->to buffer & xmlreader from that buffer... whit libxml2
- Date: Thu, 29 Jan 2004 18:58:59 +0100
[...]
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]