Skip to main content

validate_xml_name

Function validate_xml_name 

Source
pub fn validate_xml_name(name: &str) -> XmlResult<()>
Expand description

Validates the XML name subset used by this MVP.

The validator intentionally keeps the first implementation conservative: ASCII letters and _ may start a name; ASCII letters, digits, _, -, and . may continue it. Namespaces are represented structurally, so : is not accepted inside a local name or prefix.