oxml-opc
Read, mutate, and write the Open Packaging Conventions layer used by OOXML files.
Capabilities
- ZIP package parts with configurable read limits.
- Content type defaults and overrides.
- Relationship parsing, target resolution, and mutation.
- Main-document discovery, part navigation, and package preservation.
Use it when
Use this crate when implementing an OOXML package reader or writer. Use rdocx or rpptx for complete document APIs.
Relationship
This is the shared successor to the deprecated rdocx-opc shim and is used by
both document families. OPC manages containers, parts, and relationships. It
does not interpret document-format XML. Encryption and digital signature APIs
are optional feature-gated capabilities.
Example
use ContentTypes;
let content_types = from_xml?;
assert_eq!;
# Ok::
Add oxml-opc = "0.12.1" to your dependencies. Start with the package API documentation.