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§
- _xml
Attr - Attribute node.
- _xml
Attribute - Attribute declaration from DTD.
- _xmlBuf
- Buffer structure (modern replacement for xmlBuffer).
- _xml
Buffer - Buffer structure. Deprecated in favor of xmlBuf.
- _xml
Char Encoding Handler - Character encoding conversion handler.
- _xmlDoc
- XML Document.
- _xmlDtd
- DTD (Document Type Definition).
- _xml
Element - Element declaration from DTD.
- _xml
Element Content - Element content model.
- _xml
Entity - Entity declaration.
- _xml
Enumeration - Enumeration value for attribute declarations.
- _xml
Error - Structured error information.
- _xmlID
- An XML ID instance (ID table entry).
- _xml
Node - XML node — the core tree structure.
- _xml
Node Set - XPath node set.
- _xml
Notation - Notation declaration.
- _xmlNs
- Namespace declaration or XPath namespace node.
- _xml
Output Buffer - Output buffer.
- _xml
Parser Ctxt - Parser context — the primary parsing state structure.
- _xml
Parser Input - Parser input stream.
- _xml
Parser Input Buffer - Parser input buffer.
- _xml
Parser Node Info - Node info for parser tracking.
- _xml
Parser Node Info Seq - Node info sequence.
- _xmlRef
- An XML IDREF instance (ref table entry).
- _xmlSAX
Handler - SAX event handler structure.
- _xmlSAX
Handler V1 - SAX handler, version 1 (upstream
struct _xmlSAXHandlerV1, parser.h). - _xml
Valid Ctxt - Validation context.
- _xmlX
Path Context - XPath evaluation context.
- _xmlX
Path Object - XPath evaluated object.
- _xslt
Attr Set - XSLT attribute set.
- _xslt
Decimal Format - XSLT decimal format definition.
- _xslt
Document - XSLT document wrapper.
- _xslt
KeyDef - XSLT key definition.
- _xslt
KeyTable - XSLT key table entry.
- _xslt
NsAlias - XSLT namespace alias.
- _xslt
Sort - XSLT sort element.
- _xslt
Stack Elem - XSLT stack element (variable/parameter binding).
- _xslt
Stylesheet - XSLT stylesheet — the compiled representation of an XSLT stylesheet.
- _xslt
Template - XSLT compiled template.
- _xslt
Transform Context - XSLT transform context — runtime state during a transformation.
- xmlChL
Range - Long character-range table entry (upstream
xmlChLRange, chvalid.h). - xmlCh
Range Group - Character-class range group (upstream
xmlChRangeGroup, chvalid.h) — the type of the exported char-class tablesxmlIsBaseCharGroup&c. - xmlChS
Range - Character-range table entry (upstream
xmlChSRange, chvalid.h).
Type Aliases§
- xmlAttr
Ptr - xmlAttribute
Decl Ptr - xmlBuf
Ptr - xmlBuffer
Ptr - xmlChar
Encoding Handler Ptr - xmlDoc
Ptr - xmlDtd
Ptr - xmlElement
Content Ptr - xmlElement
Ptr - xmlEntity
Ptr - xmlEnumeration
Ptr - xmlError
Ptr - xmlNode
Ptr - xmlNode
SetPtr - xmlNotation
Ptr - xmlNs
Ptr - xmlOutput
Buffer Ptr - xmlParser
Ctxt Ptr - xmlParser
Input Buffer Ptr - xmlParser
Input Ptr - xmlParser
Node Info Seq - Typedef alias for
_xmlParserNodeInfoSeq. - xmlSAX
Handler Ptr - xmlValid
Ctxt Ptr - xmlX
Path Context Ptr - xmlX
Path Object Ptr - xslt
Attr SetPtr - xslt
Decimal Format Ptr - xslt
Document Ptr - xslt
KeyDef Ptr - xslt
KeyTable Ptr - xslt
NsAlias Ptr - xslt
Sort Ptr - xslt
Stack Elem Ptr - xslt
Stylesheet Ptr - xslt
Template Ptr - xslt
Transform Context Ptr
Unions§
- Encoding
Input Union - Character encoding conversion handler.
- Encoding
Output Union - Output-side counterpart of
EncodingInputUnion.