oxml-core
Share exact OOXML units, XML helpers, and package-independent document property models.
Capabilities
- Lengths in twips, EMUs, half-points, centipoints, and physical units.
- Angles and thousandths-of-a-percent values used by OOXML schemas.
- Core, application, and custom property parsing and writing.
- XML 1.0 lexical validation, namespace handling, decoding, and raw capture.
Use it when
Use this crate when implementing OOXML infrastructure shared by WordprocessingML and PresentationML. End-user document applications should prefer rdocx or rpptx.
Relationship
Higher-level oxml-*, rdocx-*, and rpptx-* crates build on these primitives
without introducing a format-specific dependency here. These are focused OOXML
building blocks, not a general DOM or schema implementation. Unit conversions
follow the repository's exact truncation rules.
Example
use Length;
let page_width = inches;
assert_eq!;
Add oxml-core = "0.12.1" to your dependencies. See the API documentation for XML and property types.