OPML library for Rust & standalone CLI.
https://crates.io/crates/opml
Bauke
a9c0deac33
Apparently in OPML 1.0 text attributes are not required, so this should make it work for all versions. |
||
---|---|---|
examples | ||
source | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
LICENSE-Apache | ||
LICENSE-MIT | ||
README.md | ||
rustfmt.toml |
README.md
OPML
An OPML parser for Rust.
Getting Started
use opml::OPML;
let xml = r#"<opml version="2.0"><body><outline text="Outline"/></body></opml>"#;
let parsed = OPML::new(xml).unwrap();
println!("{:#?}", parsed);
Check out the documentation for further details.
CLI
Looking for a command-line utility to parse OPML documents? Check out the opml-cli
, a small wrapper around this crate that will let you do just that.
License
Open-sourced with either the
- Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (http://opensource.org/licenses/MIT)
at your option.
The samples located in tests/spec_samples
were taken from the OPML 2.0 spec and are subject to their own license.