* 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_
| 13730 | * in case of error. |
| 13731 | */ |
| 13732 | int |
| 13733 | xmlCtxtUseOptions(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: |