MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / htmlReadFile

Function htmlReadFile

Externals/LibXML/HTMLparser.c:6016–6026  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

6014 * Returns the resulting document tree
6015 */
6016htmlDocPtr
6017htmlReadFile(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:

Callers 4

ifFunction · 0.85
test_htmlReadFileFunction · 0.85
parseAndPrintFileFunction · 0.85
errParseTestFunction · 0.85

Calls 2

htmlCreateFileParserCtxtFunction · 0.85
htmlDoReadFunction · 0.85

Tested by 3

test_htmlReadFileFunction · 0.68
parseAndPrintFileFunction · 0.68
errParseTestFunction · 0.68