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

Function xmlRelaxReadFile

ThirdParty/libxml2/vtklibxml2/relaxng.c:1414–1430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1412 xmlDocPtr doc);
1413
1414static xmlDoc *
1415xmlRelaxReadFile(xmlRelaxNGParserCtxtPtr ctxt, const char *filename) {
1416 xmlParserCtxtPtr pctxt;
1417 xmlDocPtr doc;
1418
1419 pctxt = xmlNewParserCtxt();
1420 if (pctxt == NULL) {
1421 xmlRngPErrMemory(ctxt);
1422 return(NULL);
1423 }
1424 if (ctxt->serror != NULL)
1425 xmlCtxtSetErrorHandler(pctxt, ctxt->serror, ctxt->userData);
1426 doc = xmlCtxtReadFile(pctxt, filename, NULL, 0);
1427 xmlFreeParserCtxt(pctxt);
1428
1429 return(doc);
1430}
1431
1432static xmlDoc *
1433xmlRelaxReadMemory(xmlRelaxNGParserCtxtPtr ctxt, const char *buf, int size) {

Callers 3

xmlRelaxNGLoadIncludeFunction · 0.85
xmlRelaxNGParseFunction · 0.85

Calls 5

xmlNewParserCtxtFunction · 0.85
xmlRngPErrMemoryFunction · 0.85
xmlCtxtSetErrorHandlerFunction · 0.85
xmlCtxtReadFileFunction · 0.85
xmlFreeParserCtxtFunction · 0.85

Tested by

no test coverage detected