docs.rs failed to build xmlJSON-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
xmlJSON-0.2.0
xmlJSON
Convert XML data to JSON. Note that this is not yet well tested. Use at your own risk.
Status
Usage
Add this to your Cargo.toml:
= "*"
xmlJSON
Structs for conversions from XML to JSON //!
extern crate xmlJSON;
extern crate rustc_serialize;
//!
use XmlDocument;
use json;
use FromStr;
//!
let s = "<test lang=\"rust\">An XML Document <testElement>A test
element</testElement></test>"
let document : XmlDocument = from_str.unwrap;
let jsn : Json = document.to_json;
//! The resulting Json will be of the form //!
and add this to your crate root:
extern crate xmlJSON;
TODO:
- Add better testing
- Add documentation
- Add conversion from JSON to XML, and allowing for writing JSON as XML