docx-rs 0.4.20

A .docx file writer with Rust/WebAssembly.
Documentation
use super::XMLBuilder;
use super::XmlEvent;
use std::io::Write;

impl<W: Write> XMLBuilder<W> {
    // i.e. <cp:properties xmlns:vt="http://schemas.openxmlformats.org/package/2006/relationships">
    open!(
        open_core_properties,
        "cp:coreProperties",
        "xmlns:cp",
        "xmlns:dc",
        "xmlns:dcterms",
        "xmlns:dcmitype",
        "xmlns:xsi"
    );
    closed_with_child!(dcterms_created, "dcterms:created", "xsi:type");
    closed_with_child!(dc_creator, "dc:creator");
    closed_with_child!(dc_description, "dc:description");
    closed_with_child!(dc_language, "dc:language");
    closed_with_child!(cp_last_modified_by, "cp:lastModifiedBy");
    closed_with_child!(dcterms_modified, "dcterms:modified", "xsi:type");
    closed_with_child!(cp_revision, "cp:revision");
    closed_with_child!(dc_subject, "dc:subject");
    closed_with_child!(dc_title, "dc:title");
}