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

Function xmlReadFile

Externals/LibXML/parser.c:13672–13681  ·  view source on GitHub ↗

* xmlReadFile: * @filename: a file or URL * @encoding: the document encoding, or NULL * @options: a combination of xmlParserOption * * parse an XML file from the filesystem or the network. * * Returns the resulting document tree */

Source from the content-addressed store, hash-verified

13670 * Returns the resulting document tree
13671 */
13672xmlDocPtr
13673xmlReadFile(const char *filename, const char *encoding, int options)
13674{
13675 xmlParserCtxtPtr ctxt;
13676
13677 ctxt = xmlCreateURLParserCtxt(filename, options);
13678 if (ctxt == NULL)
13679 return (NULL);
13680 return (xmlDoRead(ctxt, NULL, encoding, options, 0));
13681}
13682
13683/**
13684 * xmlReadMemory:

Callers 15

parseAndPrintFileFunction · 0.85
mainFunction · 0.85
test_c14nFunction · 0.85
load_xpath_exprFunction · 0.85
test_xmlReadFileFunction · 0.85
xmlSchematronLoadIncludeFunction · 0.85
xmlSchematronParseFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
oldParseTestFunction · 0.85
noentParseTestFunction · 0.85
errParseTestFunction · 0.85

Calls 2

xmlCreateURLParserCtxtFunction · 0.85
xmlDoReadFunction · 0.85

Tested by 15

mainFunction · 0.68
test_c14nFunction · 0.68
load_xpath_exprFunction · 0.68
test_xmlReadFileFunction · 0.68
mainFunction · 0.68
oldParseTestFunction · 0.68
noentParseTestFunction · 0.68
errParseTestFunction · 0.68
walkerParseTestFunction · 0.68
xpathDocTestFunction · 0.68
xptrDocTestFunction · 0.68
xmlidDocTestFunction · 0.68