Expand description
A tiny XML tree, shared by the OOXML and ODF extractors.
The office formats need to look around an element (a paragraph’s style lives in a sibling subtree, a hyperlink target in another file), which a streaming reader makes awkward. Parsing into a small tree first keeps each extractor readable; the documents involved are already fully in memory because they come out of a ZIP entry.
Names are stored without their prefix: OOXML and ODF use fixed, well-known
prefixes (w:, a:, text:, table:), and matching on local names keeps
the extractors free of namespace plumbing.
Structs§
- Element
- An XML element: local name, attributes and children.
Enums§
- Node
- A child of an element.
Functions§
- parse
- Parse a document and return its root element.