sheetkit_xml/lib.rs
1//! sheetkit-xml: Low-level XML parsing and serialization for Office Open XML formats.
2//!
3//! This crate provides Rust structures for OOXML Excel file XML schemas,
4//! with serde-based serialization and deserialization via quick-xml.
5//!
6//! # Modules
7//!
8//! - [`namespaces`] - OOXML namespace URI constants
9//! - [`content_types`] - `[Content_Types].xml` structures
10//! - [`relationships`] - Relationships (`.rels`) structures
11//! - [`workbook`] - `xl/workbook.xml` structures
12//! - [`worksheet`] - `xl/worksheets/sheet*.xml` structures
13//! - [`styles`] - `xl/styles.xml` structures
14//! - [`shared_strings`] - `xl/sharedStrings.xml` structures
15
16pub mod cell_ref;
17pub mod chart;
18pub mod comments;
19pub mod content_types;
20pub mod control;
21pub mod doc_props;
22pub mod drawing;
23pub mod namespaces;
24pub mod pivot_cache;
25pub mod pivot_table;
26pub mod relationships;
27pub mod shared_strings;
28pub mod slicer;
29pub mod sparkline;
30pub mod styles;
31pub mod table;
32pub mod theme;
33pub mod threaded_comment;
34pub mod workbook;
35pub mod worksheet;
36
37/// Canonical SpreadsheetML main namespace, used when a root omits `xmlns`.
38pub(crate) fn default_spreadsheet_ml_ns() -> String {
39 namespaces::SPREADSHEET_ML.to_string()
40}
41
42/// Canonical relationships namespace, used when a root omits `xmlns:r`.
43pub(crate) fn default_relationships_ns() -> String {
44 namespaces::RELATIONSHIPS.to_string()
45}