MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlCtxtReadFile

Function xmlCtxtReadFile

ThirdParty/libxml2/vtklibxml2/parser.c:14065–14080  ·  view source on GitHub ↗

* xmlCtxtReadFile: * @ctxt: an XML parser context * @filename: a file or URL * @encoding: the document encoding (optional) * @options: a combination of xmlParserOption * * Parse an XML file from the filesystem, the network or a user-defined * resource loader. * * Returns the resulting document tree */

Source from the content-addressed store, hash-verified

14063 * Returns the resulting document tree
14064 */
14065xmlDocPtr
14066xmlCtxtReadFile(xmlParserCtxtPtr ctxt, const char *filename,
14067 const char *encoding, int options)
14068{
14069 xmlParserInputPtr input;
14070
14071 if (ctxt == NULL)
14072 return(NULL);
14073
14074 xmlCtxtReset(ctxt);
14075 xmlCtxtUseOptions(ctxt, options);
14076
14077 input = xmlNewInputURL(ctxt, filename, NULL, encoding, 0);
14078
14079 return(xmlCtxtParseDocument(ctxt, input));
14080}
14081
14082/**
14083 * xmlCtxtReadMemory:

Callers 10

testSAXFunction · 0.85
parseFileFunction · 0.85
xmlconfTestInvalidFunction · 0.85
xmlconfTestValidFunction · 0.85
xmlconfTestNotNSWFFunction · 0.85
xmlconfTestNotWFFunction · 0.85
xmlSchemaAddSchemaDocFunction · 0.85
errParseTestFunction · 0.85
xmlidDocTestFunction · 0.85
xmlRelaxReadFileFunction · 0.85

Calls 4

xmlCtxtResetFunction · 0.85
xmlCtxtUseOptionsFunction · 0.85
xmlNewInputURLFunction · 0.85
xmlCtxtParseDocumentFunction · 0.85

Tested by 2

errParseTestFunction · 0.68
xmlidDocTestFunction · 0.68