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.
- _xml
Buffer - Buffer structure. Deprecated in favor of xmlBuf.
- _xmlDoc
- XML Document.
- _xmlDtd
- DTD (Document Type Definition).
- _xml
Element Content - Element content model.
- _xml
Entity - Entity declaration.
- _xml
Enumeration - Enumeration value for attribute declarations.
- _xml
Error - Structured error information.
- _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.
- _xmlSAX
Handler - SAX event handler structure.
- _xml
Valid Ctxt - Validation context.
- _xmlX
Path Context - XPath evaluation context.
- _xmlX
Path Object - XPath evaluated object.
- _xslt
Stylesheet - XSLT stylesheet (opaque, forward declaration).
- _xslt
Transform Context - XSLT transform context (opaque, forward declaration).
Type Aliases§
- xmlAttr
Ptr - xmlBuffer
Ptr - xmlDoc
Ptr - xmlDtd
Ptr - xmlEntity
Ptr - xmlError
Ptr - xmlNode
Ptr - xmlNode
SetPtr - 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
Stylesheet Ptr - xslt
Transform Context Ptr