1 // XMLPush.cpp : Defines the entry point for the console application.
6 int main(int argc, char* argv[])
11 f = fopen("XMLDump.xml", "r");
15 xmlParserCtxtPtr ctxt;
17 res = fread(chars, 1, 4, f);
19 ctxt = xmlCreatePushParserCtxt(NULL, NULL,
20 chars, res, "foooo (filename)?");
21 while ((res = fread(chars, 1, size, f)) > 0) {
22 xmlParseChunk(ctxt, chars, res, 0);
24 xmlParseChunk(ctxt, chars, 0, 1);
26 xmlFreeParserCtxt(ctxt);