* 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 */
| 2160 | * Returns the new xmlTextReaderPtr or NULL in case of error |
| 2161 | */ |
| 2162 | xmlTextReaderPtr |
| 2163 | xmlNewTextReaderFilename(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: |
no test coverage detected