Enable XML catalog processing instructions.
Store small strings directly in the node struct to save memory.
Adds default attributes from the DTD to the result document.
Implies XML_PARSE_DTDLOAD, but loading of external content can be disabled with XML_PARSE_NO_XXE.
Enables loading of an external DTD and the loading and substitution of external parameter entities. Has no effect if XML_PARSE_NO_XXE is set.
Enable DTD validation which requires loading external DTDs and external entities (both general and parameter entities) unless XML_PARSE_NO_XXE was set.
DTD validation is vulnerable to algorithmic complexity attacks and should never be enabled with untrusted input.
Relax some internal limits.
Maximum size of text nodes, tags, comments, processing instructions, CDATA sections, entity values
Maximum size of names, system literals, pubid literals
Maximum nesting depth of elements
Maximum nesting depth of entities
Ignore the encoding in the XML declaration. Mostly unneeded these days. The only effect is to enforce UTF-8 decoding of ASCII-like data.
Disable the global system XML catalog.
Disable loading of external DTDs or entities.
Don't fix up XInclude xml:base URIs. This option only affects the xmlTextReader and XInclude interfaces.
Remove some whitespace from the result document. Where to remove whitespace depends on DTD element declarations or a broken heuristic with unfixable bugs. Use of this option is DISCOURAGED.
Not supported by the push parser.
Output normal text nodes instead of CDATA nodes.
Create a document without interned strings, making all strings separate memory allocations.
Despite the confusing name, this option enables substitution of entities. The resulting tree won't contain any entity reference nodes.
This option also enables loading of external entities (both general and parameter entities) which is dangerous. If you process untrusted data, it's recommended to set the XML_PARSE_NO_XXE option to disable loading of external entities.
Disable error and warning reports to the error handlers. Errors are still accessible with xmlCtxtGetLastError().
Disable network access with the built-in HTTP or FTP clients. After the last built-in network client was removed in 2.15, this option has no effect except for being passed on to custom resource loaders.
Disable warning reports.
Don't generate XInclude start/end nodes when expanding inclusions. This option only affects the xmlTextReader and XInclude interfaces.
Remove redundant namespace declarations from the result document.
Use old Name productions from before XML 1.0 Fifth Edition.
Enable an unspecified legacy mode for SAX parsers.
Enable some pedantic warnings.
Enable "recovery" mode which allows non-wellformed documents. How this mode behaves exactly is unspecified and may change without further notice. Use of this feature is DISCOURAGED.
Not supported by the push parser.
Always invoke the deprecated SAX1 startElement and endElement handlers.
Force the parser to ignore IDs.
Enable input decompression. Setting this option is discouraged to avoid zip bombs.
Enable XInclude processing. This option only affects the xmlTextReader and XInclude interfaces.
Enable reporting of line numbers larger than 65535.