Module rdftk_io::xml::writer[][src]

Expand description

Provides the type XmlWriter for writing in the RDF 1.1 XML Syntax format.

This writer has a number of options, it can be written in a plain, streaming, form or alternatively pretty-printed for readability. It is also possible to pick one of the type styles described in the specification, “flat” or “striped”.

Example

use rdftk_io::xml::writer::{XmlOptions, XmlWriter};
use rdftk_io::write_graph_to_string;

let options: XmlOptions = XmlOptions::flat().pretty().clone();

let writer = XmlWriter::new(options);

println!("{}", write_graph_to_string(&writer, &graph).unwrap());

Structs

XmlOptions

Options that control how the XML writer will render a graph.

XmlWriter

A Writer to output RDF/XML.

Enums

XmlStyle

Determines the style of the generated XML.