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

Function xmlNewTextReaderFilename

ThirdParty/libxml2/vtklibxml2/xmlreader.c:2162–2177  ·  view source on GitHub ↗

* xmlNewTextReaderFilename: * @URI: the URI of the resource to process * * Create an xmlTextReader structure fed with the resource at @URI * * Returns the new xmlTextReaderPtr or NULL in case of error */

Source from the content-addressed store, hash-verified

2160 * Returns the new xmlTextReaderPtr or NULL in case of error
2161 */
2162xmlTextReaderPtr
2163xmlNewTextReaderFilename(const char *URI) {
2164 xmlParserInputBufferPtr input;
2165 xmlTextReaderPtr ret;
2166
2167 input = xmlParserInputBufferCreateFilename(URI, XML_CHAR_ENCODING_NONE);
2168 if (input == NULL)
2169 return(NULL);
2170 ret = xmlNewTextReader(input, URI);
2171 if (ret == NULL) {
2172 xmlFreeParserInputBuffer(input);
2173 return(NULL);
2174 }
2175 ret->allocs |= XML_TEXTREADER_INPUT;
2176 return(ret);
2177}
2178
2179/**
2180 * xmlFreeTextReader:

Callers 1

xmlReaderForFileFunction · 0.85

Calls 3

xmlNewTextReaderFunction · 0.85
xmlFreeParserInputBufferFunction · 0.85

Tested by

no test coverage detected