* htmlReadFile: * @filename: a file or URL * @encoding: the document encoding, or NULL * @options: a combination of htmlParserOption(s) * * parse an XML file from the filesystem or the network. * * Returns the resulting document tree */
| 6014 | * Returns the resulting document tree |
| 6015 | */ |
| 6016 | htmlDocPtr |
| 6017 | htmlReadFile(const char *filename, const char *encoding, int options) |
| 6018 | { |
| 6019 | htmlParserCtxtPtr ctxt; |
| 6020 | |
| 6021 | xmlInitParser(); |
| 6022 | ctxt = htmlCreateFileParserCtxt(filename, encoding); |
| 6023 | if (ctxt == NULL) |
| 6024 | return (NULL); |
| 6025 | return (htmlDoRead(ctxt, NULL, NULL, options, 0)); |
| 6026 | } |
| 6027 | |
| 6028 | /** |
| 6029 | * htmlReadMemory: |