* htmlCtxtReadIO: * @ctxt: an HTML parser context * @ioread: an I/O read function * @ioclose: an I/O close function * @ioctx: an I/O handler * @URL: the base URL to use for the document * @encoding: the document encoding, or NULL * @options: a combination of htmlParserOption(s) * * Parse an HTML document from I/O functions and source and build a tree. * * See xmlNewInputIO and ht
| 6686 | * Returns the resulting document tree |
| 6687 | */ |
| 6688 | htmlDocPtr |
| 6689 | htmlCtxtReadIO(htmlParserCtxtPtr ctxt, xmlInputReadCallback ioread, |
| 6690 | xmlInputCloseCallback ioclose, void *ioctx, |
| 6691 | const char *URL, |
| 6692 | const char *encoding, int options) |
| 6693 | { |
| 6694 | xmlParserInputPtr input; |
| 6695 | |
| 6696 | if (ctxt == NULL) |
| 6697 | return (NULL); |
| 6698 | |
| 6699 | htmlCtxtReset(ctxt); |
| 6700 | htmlCtxtUseOptions(ctxt, options); |
| 6701 | |
| 6702 | input = xmlNewInputIO(ctxt, URL, ioread, ioclose, ioctx, encoding, 0); |
| 6703 | |
| 6704 | return(htmlCtxtParseDocument(ctxt, input)); |
| 6705 | } |
| 6706 | |
| 6707 | #endif /* LIBXML_HTML_ENABLED */ |
nothing calls this directly
no test coverage detected