Skip to main content

Module structs

Module structs 

Source
Expand description

C ABI struct definitions — exact upstream layout (§14, §17).

Every struct in this module is laid out to match the corresponding upstream C struct byte-for-byte on the target platform.

§Upstream structs

All structs derived from SRC-LIBXML2-2.15.3-TREE-H and related headers. See the sub-agent extraction output for complete field-level archaeology.

§Safety

These structs are #[repr(C)] and may be passed across the FFI boundary. Fields marked _deprecated_* or _unused_* are retained for ABI compatibility even when the upstream has deprecated them.

§Phase 1 status

All core tree structs, error struct, parser context, SAX handler, XPath context/object, and I/O structs are defined.

§ABI verification

Each struct must be verified with offsetof/sizeof probes compiled from upstream headers. See courts/abi-struct-*.json for receipts.

Structs§

_xmlAttr
Attribute node.
_xmlAttribute
Attribute declaration from DTD.
_xmlBuf
Buffer structure (modern replacement for xmlBuffer).
_xmlBuffer
Buffer structure. Deprecated in favor of xmlBuf.
_xmlCharEncodingHandler
Character encoding conversion handler.
_xmlDoc
XML Document.
_xmlDtd
DTD (Document Type Definition).
_xmlElement
Element declaration from DTD.
_xmlElementContent
Element content model.
_xmlEntity
Entity declaration.
_xmlEnumeration
Enumeration value for attribute declarations.
_xmlError
Structured error information.
_xmlID
An XML ID instance (ID table entry).
_xmlNode
XML node — the core tree structure.
_xmlNodeSet
XPath node set.
_xmlNotation
Notation declaration.
_xmlNs
Namespace declaration or XPath namespace node.
_xmlOutputBuffer
Output buffer.
_xmlParserCtxt
Parser context — the primary parsing state structure.
_xmlParserInput
Parser input stream.
_xmlParserInputBuffer
Parser input buffer.
_xmlParserNodeInfo
Node info for parser tracking.
_xmlParserNodeInfoSeq
Node info sequence.
_xmlRef
An XML IDREF instance (ref table entry).
_xmlSAXHandler
SAX event handler structure.
_xmlSAXHandlerV1
SAX handler, version 1 (upstream struct _xmlSAXHandlerV1, parser.h).
_xmlValidCtxt
Validation context.
_xmlXPathContext
XPath evaluation context.
_xmlXPathObject
XPath evaluated object.
_xsltAttrSet
XSLT attribute set.
_xsltDecimalFormat
XSLT decimal format definition.
_xsltDocument
XSLT document wrapper.
_xsltKeyDef
XSLT key definition.
_xsltKeyTable
XSLT key table entry.
_xsltNsAlias
XSLT namespace alias.
_xsltSort
XSLT sort element.
_xsltStackElem
XSLT stack element (variable/parameter binding).
_xsltStylesheet
XSLT stylesheet — the compiled representation of an XSLT stylesheet.
_xsltTemplate
XSLT compiled template.
_xsltTransformContext
XSLT transform context — runtime state during a transformation.
xmlChLRange
Long character-range table entry (upstream xmlChLRange, chvalid.h).
xmlChRangeGroup
Character-class range group (upstream xmlChRangeGroup, chvalid.h) — the type of the exported char-class tables xmlIsBaseCharGroup &c.
xmlChSRange
Character-range table entry (upstream xmlChSRange, chvalid.h).

Type Aliases§

xmlAttrPtr
xmlAttributeDeclPtr
xmlBufPtr
xmlBufferPtr
xmlCharEncodingHandlerPtr
xmlDocPtr
xmlDtdPtr
xmlElementContentPtr
xmlElementPtr
xmlEntityPtr
xmlEnumerationPtr
xmlErrorPtr
xmlNodePtr
xmlNodeSetPtr
xmlNotationPtr
xmlNsPtr
xmlOutputBufferPtr
xmlParserCtxtPtr
xmlParserInputBufferPtr
xmlParserInputPtr
xmlParserNodeInfoSeq
Typedef alias for _xmlParserNodeInfoSeq.
xmlSAXHandlerPtr
xmlValidCtxtPtr
xmlXPathContextPtr
xmlXPathObjectPtr
xsltAttrSetPtr
xsltDecimalFormatPtr
xsltDocumentPtr
xsltKeyDefPtr
xsltKeyTablePtr
xsltNsAliasPtr
xsltSortPtr
xsltStackElemPtr
xsltStylesheetPtr
xsltTemplatePtr
xsltTransformContextPtr

Unions§

EncodingInputUnion
Character encoding conversion handler.
EncodingOutputUnion
Output-side counterpart of EncodingInputUnion.