Registry / serialization / xml
library1.3.0rscratesunverified

An XML library in pure Rust for parsing and writing XML documents.

# Cargo.toml [dependencies] xml = "1.3.0"
INSTALL
IMPORT
SIG · XML
X
xml
serializationrustv1.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EventReader
use xml::reader::EventReader;

Parses an XML string and prints start element names.

use xml::reader::EventReader; use xml::reader::XmlEvent; fn main() -> Result<(), Box<dyn std::error::Error>> { let xml = "<root><child/></root>"; let parser = EventReader::from_str(xml); for event in parser { match event? { XmlEvent::StartElement { name, .. } => println!("Start: {}", name), _ => {} } } Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
xml — cargo add xml · libregistry