File: README.md

package info (click to toggle)
rust-rxml-proc 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 88 kB
  • sloc: makefile: 4
file content (16 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# `rxml_proc` — Compile-time validation of CData, Name and NCName strings

This 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.

[![crate badge](https://img.shields.io/crates/v/rxml_proc.svg)](https://crates.io/crates/rxml_proc) [![docs badge](https://docs.rs/rxml_proc/badge.svg)](https://docs.rs/rxml_proc/)

Please see the [rxml](https://crates.io/crates/rxml) crate for more information.

## Example

```rust
use rxml::NCNameStr;
use rxml_proc::xml_ncname;

const XML_PREFIX: &'static NCNameStr = xml_ncname!("xml");
```