xml_core/lib.rs
1//! `xml-core` — low-level XML infrastructure for the toolkit.
2//!
3//! This crate provides reading and writing of generic XML streams, with no
4//! knowledge of the OOXML vocabulary (WordprocessingML, SpreadsheetML,
5//! PresentationML, DrawingML). It builds on `quick-xml` for low-level
6//! parsing/writing; all logic specific to Office (schemas, elements,
7//! specific attributes) lives in the higher-level crates (`opc`,
8//! `word-ooxml`, `excel-ooxml`, etc.).
9
10mod error;
11mod reader;
12mod writer;
13
14pub use error::{Error, Result};
15pub use reader::{Reader, decode_attribute_value, decode_general_ref, decode_text};
16pub use writer::Writer;
17
18/// Re-exported XML event types from `quick-xml`, forming the generic XML
19/// vocabulary used throughout this crate's public API (start/end/empty
20/// elements, text, comments, etc.). These are not specific to any Office
21/// XML vocabulary.
22pub use quick_xml::events::{BytesDecl, BytesEnd, BytesRef, BytesStart, BytesText, Event};