• Show log

    Commit

  • Hash : db8b9722
    Author : Nick Wellnhofer
    Date : 2023-09-20T13:56:16

    parser: Deprecate global parser options
    
    Note that setting global options has no effect anyway when using any of
    the modern parser API functions which take an option argument like
    xmlReadMemory or when using xmlCtxtUseOptions.
    
    Global options only have an effect when using old API functions
    xmlParse* or xmlSAXParse* or when using an xmlParserCtxt without calling
    xmlCtxtUseOptions.
    
    Unfortunately, many downstream projects still modify global parser
    options often without realizing that it has no effect. If necessary,
    switch to the modern API. Then you can safely remove all code that
    changes global options.
    
    Here's a list of deprecated functions and global variables together with
    the corresponding parser options.
    
    - xmlSubstituteEntitiesDefault, xmlSubstituteEntitiesDefaultValue
      Parser option XML_PARSE_NOENT
    
    - xmlKeepBlanksDefault, xmlKeepBlanksDefaultValue
      Inverse of parser option XML_PARSE_NOBLANKS
    
    - xmlPedanticParserDefault, xmlPedanticParserDefaultValue
      Parser option XML_PARSE_PEDANTIC
    
    - xmlLineNumbersDefault, xmlLineNumbersDefaultValue
      Always enabled by new API
    
    - xmlDoValidityCheckingDefaultValue
      Parser option XML_PARSE_DTDVALID
    
    - xmlGetWarningsDefaultValue
      Inverse of parser option XML_PARSE_NOWARNING
    
    - xmlLoadExtDtdDefaultValue
      Parser options XML_PARSE_DTDLOAD and XML_PARSE_DTDATTR