OPML library for Rust & standalone CLI. https://crates.io/crates/opml
Go to file
Bauke a9c0deac33
Make the text attribute "technically optional" by giving it a default.
Apparently in OPML 1.0 text attributes are not required, so this should
make it work for all versions.
2020-08-15 12:33:54 +02:00
examples Make the head element optional to accomodate technically invalid OPMLs. 2020-05-26 10:28:19 +02:00
source Make the text attribute "technically optional" by giving it a default. 2020-08-15 12:33:54 +02:00
tests Make the text attribute "technically optional" by giving it a default. 2020-08-15 12:33:54 +02:00
.gitignore Initial commit! 🎉 2020-05-23 14:32:40 +02:00
Cargo.toml Make the text attribute "technically optional" by giving it a default. 2020-08-15 12:33:54 +02:00
LICENSE-Apache Move to self-hosted Gitea, clean up stuff. 2020-08-06 17:45:18 +02:00
LICENSE-MIT Move to self-hosted Gitea, clean up stuff. 2020-08-06 17:45:18 +02:00
README.md Move to self-hosted Gitea, clean up stuff. 2020-08-06 17:45:18 +02:00
rustfmt.toml Initial commit! 🎉 2020-05-23 14:32:40 +02:00

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

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.