Skip to main content

Module constants

Module constants 

Source
Expand description

C ABI constants — supplementary ABI constants not defined as enum variants or flag bits in types.rs (§14).

This module contains additional constants that appear as #define macros in upstream headers but are not naturally represented as Rust enum variants. The primary type/enum definitions live in types.rs — this module holds the rest.

§Phase 1 status

Complete — all key upstream #define constants are present.

§Upstream header mapping

ConstantHeaderPurpose
XML_DEFAULT_VERSIONparser.hDefault XML version string
XML_DETECT_IDSparser.hFlag for xmlLoadExtDtdDefaultValue
XML_COMPLETE_ATTRSparser.hFlag for xmlLoadExtDtdDefaultValue
XML_SKIP_IDSparser.hFlag for xmlLoadExtDtdDefaultValue
XML_SUBSTITUTE_*parserInternals.hEntity substitution flags
XML_DOCB_DOCUMENT_NODEtree.hDocBook document node type value
XML_XML_NAMESPACEtree.hThe XML namespace URI
XML_XPATH_CHECKNSxpath.hXPath evaluation flag
XML_XPATH_NOVARxpath.hXPath evaluation flag
XML_CATALOGS_NAMESPACEcatalog.hCatalog namespace URI
XML_CATALOG_PIcatalog.hCatalog PI target
XML_SAX2_MAGICparser.hSAX2 initialization marker

Constants§

HTML_PARSE_COMPACT
HTML parser option: compact text nodes.
HTML_PARSE_IGNORE_ENC
HTML parser option: ignore encoding declaration.
HTML_PARSE_NOBLANKS
HTML parser option: remove blank nodes.
HTML_PARSE_NOERROR
HTML parser option: suppress error reports.
HTML_PARSE_NONET
HTML parser option: do not load external entities.
HTML_PARSE_NOWARNING
HTML parser option: suppress warning reports.
HTML_PARSE_NOXINCNODE
HTML parser option: do not generate XInclude nodes.
HTML_PARSE_NO_FLAGS
HTML parser status: no problem.
HTML_PARSE_PEDANTIC
HTML parser option: pedantic error reporting.
XML_CATALOGS_NAMESPACE
The XML Catalogs namespace URI.
XML_CATALOG_PI
The XML Catalogs PI target string.
XML_COMPLETE_ATTRS
Flag for xmlLoadExtDtdDefaultValue: complete attributes from DTD.
XML_DEFAULT_VERSION
Default XML version string. #define XML_DEFAULT_VERSION “1.0”
XML_DETECT_IDS
Flag for xmlLoadExtDtdDefaultValue: detect ID/IDREF attributes.
XML_DOCB_DOCUMENT_NODE
DocBook document node type (value 21).
XML_MAX_CONV_BUF_LEN
Maximum conversion buffer length.
XML_MAX_ENCODING_NAME_LEN
Maximum encoding name length.
XML_SAX2_MAGIC
Magic value for SAX2 initialization in xmlSAXHandler.initialized.
XML_SKIP_IDS
Flag for xmlLoadExtDtdDefaultValue: skip ID processing.
XML_SUBSTITUTE_BOTH
Substitute both general and parameter entities.
XML_SUBSTITUTE_NONE
Do not substitute entities.
XML_SUBSTITUTE_PEREF
Substitute parameter entities.
XML_SUBSTITUTE_REF
Substitute general entities.
XML_TEXTWRITER_ATTRIBUTE_NAME
Writer type: DOM writer (tree-based).
XML_TEXTWRITER_ATTRIBUTE_VALUE
Writer type: attribute value (content only).
XML_TEXTWRITER_CDATA
Writer type: CDATA content.
XML_TEXTWRITER_COMMENT
Writer type: comment node.
XML_TEXTWRITER_DTD
Writer type: DTD node.
XML_TEXTWRITER_DTD_ATTL
Writer type: DTD attribute.
XML_TEXTWRITER_DTD_ELEM
Writer type: DTD element.
XML_TEXTWRITER_DTD_ENTY
Writer type: DTD entity.
XML_TEXTWRITER_DTD_NOTA
Writer type: DTD notation.
XML_TEXTWRITER_ENTITY_REF
Writer type: entity reference.
XML_TEXTWRITER_NAME
Writer type: XML writer.
XML_TEXTWRITER_NAMESPACE
Writer type: namespace declaration.
XML_TEXTWRITER_NONE
Writer type: no writer.
XML_TEXTWRITER_NO_CONTENT
Writer type: element with no content.
XML_TEXTWRITER_PI
Writer type: PI node.
XML_TEXTWRITER_TEXT
Writer type: text content.
XML_TEXTWRITER_XML_DECLARATION
Writer type: XML declaration.
XML_XMLNS_NAMESPACE
The xmlns namespace URI.
XML_XMLNS_PREFIX
The xmlns prefix.
XML_XML_NAMESPACE
The XML namespace URI.
XML_XML_PREFIX
The xml prefix.
XML_XPATH_CHECKNS
Check namespaces during XPath evaluation.
XML_XPATH_NOVAR
Do not use default variable resolution.