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

Function xmlCtxtUseOptions

ThirdParty/libxml2/vtklibxml2/parser.c:13732–13753  ·  view source on GitHub ↗

* xmlCtxtUseOptions: * @ctxt: an XML parser context * @options: a combination of xmlParserOption * * DEPRECATED: Use xmlCtxtSetOptions. * * Applies the options to the parser context. The following options * are never cleared and can only be enabled: * * XML_PARSE_NOERROR * XML_PARSE_NOWARNING * XML_PARSE_NONET * XML_PARSE_NSCLEAN * XML_PARSE_NOCDATA * XML_PARSE_COMPACT * XML_PARSE_

Source from the content-addressed store, hash-verified

13730 * in case of error.
13731 */
13732int
13733xmlCtxtUseOptions(xmlParserCtxtPtr ctxt, int options)
13734{
13735 int keepMask;
13736
13737 /*
13738 * For historic reasons, some options can only be enabled.
13739 */
13740 keepMask = XML_PARSE_NOERROR |
13741 XML_PARSE_NOWARNING |
13742 XML_PARSE_NONET |
13743 XML_PARSE_NSCLEAN |
13744 XML_PARSE_NOCDATA |
13745 XML_PARSE_COMPACT |
13746 XML_PARSE_OLD10 |
13747 XML_PARSE_HUGE |
13748 XML_PARSE_OLDSAX |
13749 XML_PARSE_IGNORE_ENC |
13750 XML_PARSE_BIG_LINES;
13751
13752 return(xmlCtxtSetOptionsInternal(ctxt, options, keepMask));
13753}
13754
13755/**
13756 * xmlCtxtSetMaxAmplification:

Callers 15

parseFileFunction · 0.85
xmlTextReaderSetupFunction · 0.85
xmlSchemaValidateStreamFunction · 0.85
xmlParseInNodeContextFunction · 0.85
xmlCreateURLParserCtxtFunction · 0.85
xmlReadDocFunction · 0.85
xmlReadFileFunction · 0.85
xmlReadMemoryFunction · 0.85
xmlReadFdFunction · 0.85
xmlReadIOFunction · 0.85
xmlCtxtReadDocFunction · 0.85
xmlCtxtReadFileFunction · 0.85

Calls 1

Tested by 3

saxParseTestFunction · 0.68
pushParseTestFunction · 0.68
pushBoundaryTestFunction · 0.68