1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Streaming XMLTV/EPG parser and writer.
//!
//! Faithfully translates the `@iptv/xmltv` TypeScript library into Rust,
//! using `quick_xml` event-based parsing for efficient handling of 100 MB+
//! EPG files without buffering the entire DOM.
//!
//! # Usage
//!
//! ```rust
//! use crispy_xmltv::{parse, write};
//!
//! let xml = r#"<?xml version="1.0" encoding="UTF-8"?>
//! <tv>
//! <channel id="ch1">
//! <display-name>Channel One</display-name>
//! </channel>
//! <programme start="20250115120000 +0000" stop="20250115130000 +0000" channel="ch1">
//! <title>Test Show</title>
//! </programme>
//! </tv>"#;
//!
//! let doc = parse(xml).unwrap();
//! assert_eq!(doc.channels.len(), 1);
//! assert_eq!(doc.programmes.len(), 1);
//!
//! let output = write(&doc);
//! assert!(output.contains("<channel id=\"ch1\">"));
//! ```
pub use decompress_auto;
pub use ;
pub use XmltvError;
pub use ;
pub use XmltvDocument;
pub use write;