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.
_xmlBuffer
Buffer structure. Deprecated in favor of xmlBuf.
_xmlDoc
XML Document.
_xmlDtd
DTD (Document Type Definition).
_xmlElementContent
Element content model.
_xmlEntity
Entity declaration.
_xmlEnumeration
Enumeration value for attribute declarations.
_xmlError
Structured error information.
_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.
_xmlSAXHandler
SAX event handler structure.
_xmlValidCtxt
Validation context.
_xmlXPathContext
XPath evaluation context.
_xmlXPathObject
XPath evaluated object.
_xsltStylesheet
XSLT stylesheet (opaque, forward declaration).
_xsltTransformContext
XSLT transform context (opaque, forward declaration).

Type Aliases§

xmlAttrPtr
xmlBufferPtr
xmlDocPtr
xmlDtdPtr
xmlEntityPtr
xmlErrorPtr
xmlNodePtr
xmlNodeSetPtr
xmlNsPtr
xmlOutputBufferPtr
xmlParserCtxtPtr
xmlParserInputBufferPtr
xmlParserInputPtr
xmlParserNodeInfoSeq
Typedef alias for _xmlParserNodeInfoSeq.
xmlSAXHandlerPtr
xmlValidCtxtPtr
xmlXPathContextPtr
xmlXPathObjectPtr
xsltStylesheetPtr
xsltTransformContextPtr