xmlJSON 0.2.0

Conversions from XML to JSON
Documentation
1
2
3
4
5
6
7
8
9
10
extern crate xmlJSON;
extern crate rustc_serialize;

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

fn main() {
    println!("{}", XmlDocument::from_str("<test type=\"HOPE\">god please work<testing123>WE'LL SEE</testing123></test>").unwrap().to_json());
}