Perhaps I should ask this to [email protected] but looking into the archives, they are quite old. Is that list still working?
Anyway I have not manage to find something useful...
Looking at C examples that uses the function htmlParseChunk I have seen this:
ctxt = htmlCreatePushParserCtxt(
SAXHandler, &abort, buf, res, argv[1], 0);
while ( !abort && (res = fread(buf, 1, 2048, f)) > 0)
htmlParseChunk(ctxt, buf, res, 0);
SAXHandler, &abort, buf, res, argv[1], 0);
while ( !abort && (res = fread(buf, 1, 2048, f)) > 0)
htmlParseChunk(ctxt, buf, res, 0);
Checking 'abort', you know that something has gone wrong and you have to stop to pushing chunks to the parser. How you should do this in python?
Thanks, César
_______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
