Skip to main content

is_valid_xml_name

Function is_valid_xml_name 

Source
pub(crate) fn is_valid_xml_name(s: &str) -> bool
Expand description

名前(Name)として使える文字列か。DOM Standard §4.5 createElement / XML Name 規則(先頭が ASCII 英字なら 2 文字目以降は NUL・ASCII 空白・/・> 以外。 先頭が :・_・非 ASCII なら 2 文字目以降は ASCII 英数字・-・.・:・_・非 ASCII)。