xmlJSON

Convert XML data to JSON. Note that this is not yet well tested. Use at your own risk.

Status

Build Status

Docs

Usage

Add this to your Cargo.toml: rust [dependencies] xmlJSON = "0.1.3"

Structs for conversions from XML to JSON ```rust extern crate xmlJSON; extern crate rustc_serialize;

use xmlJSON::XmlDocument; use rustc_serialize::json; use std::str::FromStr;

let s = "An XML Document A test element" let document : XmlDocument = XmlDocument::fromstr(s).unwrap(); let jsn : json::Json = document.tojson(); ```

The resulting Json will be of the form

javascript { "test": { "$": { "lang": "rust" }, "_" : "An Xml Document", "testElement": { "_" : "A test element" } } }

and add this to your crate root: rust extern crate xmlJSON;

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

TODO: