# XMLity Quick XML

This crate contains the implementation of the [quick_xml] backend for XMLity. It is the intention to keep this crate up to date with the latest version of quick-xml and xmlity.
Usage
The easiest way is using the from_str and to_string functions:
use ;;
;
;
let person = Person ;
let xml = to_string.expect;
assert_eq!;
let person: Person = from_str.expect;
assert_eq!;
assert_eq!;
But it is also possible to manually create the deserializer and serializer from a quick_xml::NsReader and quick_xml::Writer respectively:
use ;;
;
let single_element = SingleElement;
let serializer = new;
let mut serializer = new;
single_element.serialize.unwrap;
let bytes = serializer.into_inner;
let xml = Stringfrom_utf8.unwrap;
assert_eq!;
let mut ns_reader = from_reader;
let mut deserializer = new;
let single_element = deserialize.unwrap;
assert_eq!;
Creating deserializers and serializers manually gives you more control including modifying namespace prefixes and scopes.