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

Function xmlReaderForDoc

ThirdParty/libxml2/vtklibxml2/xmlreader.c:5137–5149  ·  view source on GitHub ↗

* xmlReaderForDoc: * @cur: a pointer to a zero terminated string * @URL: the base URL to use for the document * @encoding: the document encoding, or NULL * @options: a combination of xmlParserOption * * Create an xmltextReader for an XML in-memory document. * The parsing flags @options are a combination of xmlParserOption. * * Returns the new reader or NULL in case of error. */

Source from the content-addressed store, hash-verified

5135 * Returns the new reader or NULL in case of error.
5136 */
5137xmlTextReaderPtr
5138xmlReaderForDoc(const xmlChar * cur, const char *URL, const char *encoding,
5139 int options)
5140{
5141 int len;
5142
5143 if (cur == NULL)
5144 return (NULL);
5145 len = xmlStrlen(cur);
5146
5147 return (xmlReaderForMemory
5148 ((const char *) cur, len, URL, encoding, options));
5149}
5150
5151/**
5152 * xmlReaderForFile:

Callers

nothing calls this directly

Calls 2

xmlStrlenFunction · 0.85
xmlReaderForMemoryFunction · 0.85

Tested by

no test coverage detected