libxml2-wasm
    Preparing search index...

    Enumeration ParseOption

    Index

    Enumeration Members

    XML_PARSE_BIG_LINES: 4194304

    Enable reporting of line numbers larger than 65535.

    XML_PARSE_CATALOG_PI: 67108864

    Enable XML catalog processing instructions.

    XML_PARSE_COMPACT: 65536

    Store small strings directly in the node struct to save memory.

    XML_PARSE_DEFAULT: 0
    XML_PARSE_DTDATTR: 8

    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.

    XML_PARSE_DTDLOAD: 4

    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.

    XML_PARSE_DTDVALID: 16

    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.

    XML_PARSE_HUGE: 524288

    Relax some internal limits.

    Maximum size of text nodes, tags, comments, processing instructions, CDATA sections, entity values

    • normal: 10M
    • huge: 1B

    Maximum size of names, system literals, pubid literals

    • normal: 50K
    • huge: 10M

    Maximum nesting depth of elements

    • normal: 256
    • huge: 2048

    Maximum nesting depth of entities

    • normal: 20
    • huge: 40
    XML_PARSE_IGNORE_ENC: 2097152

    Ignore the encoding in the XML declaration. Mostly unneeded these days. The only effect is to enforce UTF-8 decoding of ASCII-like data.

    XML_PARSE_NO_SYS_CATALOG: 33554432

    Disable the global system XML catalog.

    XML_PARSE_NO_XXE: 8388608

    Disable loading of external DTDs or entities.

    XML_PARSE_NOBASEFIX: 262144

    Don't fix up XInclude xml:base URIs. This option only affects the xmlTextReader and XInclude interfaces.

    XML_PARSE_NOBLANKS: 256

    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.

    XML_PARSE_NOCDATA: 16384

    Output normal text nodes instead of CDATA nodes.

    XML_PARSE_NODICT: 4096

    Create a document without interned strings, making all strings separate memory allocations.

    XML_PARSE_NOENT: 2

    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.

    XML_PARSE_NOERROR: 32

    Disable error and warning reports to the error handlers. Errors are still accessible with xmlCtxtGetLastError().

    XML_PARSE_NONET: 2048

    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.

    XML_PARSE_NOWARNING: 64

    Disable warning reports.

    XML_PARSE_NOXINCNODE: 32768

    Don't generate XInclude start/end nodes when expanding inclusions. This option only affects the xmlTextReader and XInclude interfaces.

    XML_PARSE_NSCLEAN: 8192

    Remove redundant namespace declarations from the result document.

    XML_PARSE_OLD10: 131072

    Use old Name productions from before XML 1.0 Fifth Edition.

    This option will be removed in a future version.

    XML_PARSE_OLDSAX: 1048576

    Enable an unspecified legacy mode for SAX parsers.

    This option will be removed in a future version.

    XML_PARSE_PEDANTIC: 128

    Enable some pedantic warnings.

    XML_PARSE_RECOVER: 1

    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.

    XML_PARSE_SAX1: 512

    Always invoke the deprecated SAX1 startElement and endElement handlers.

    This option will be removed in a future version.

    XML_PARSE_SKIP_IDS: 134217728

    Force the parser to ignore IDs.

    XML_PARSE_UNZIP: 16777216

    Enable input decompression. Setting this option is discouraged to avoid zip bombs.

    XML_PARSE_XINCLUDE: 1024

    Enable XInclude processing. This option only affects the xmlTextReader and XInclude interfaces.