rxml_proc
— Compile-time validation of CData, Name and NCName stringsThis crate is supplementary to the rxml
crate. It provides three macros (xml_cdata!
, xml_name!
and xml_ncname!
) which convert a normal &str
into the corresponding rxml
string type for strong typing of XML string flavors.
Please see the rxml crate for more information.
```rust use rxml::NCNameStr; use rxmlproc::xmlncname;
const XMLPREFIX: &'static NCNameStr = xmlncname!("xml"); ```