prefix:local) as used in XML Namespaces.ddn.data.xml.names
XML names, QNames, and namespace helper types.
Types 3
structXmlName
A validated XML Name.
Fields
string valueThe name value, as provided.structXmlQName
A validated XML namespace-aware qualified name.
Note
This represents the lexical QName (
Fields
string prefixPrefix part (empty means “no prefix”).string localLocal part (never empty).structXmlNamespace
A namespace mapping helper.
Fields
string prefixNamespace prefix (empty for the default namespace).string uriNamespace URI (empty means “no namespace”).Functions 6
fn
bool isValidXmlName(const string value) @safe pure nothrowChecks whether `value` is a valid XML `Name`.fn
bool isValidXmlNCName(const string value) @safe pure nothrowChecks whether `value` is a valid XML `NCName`.fn
XmlName parseXmlName(const string value, const XmlLocation location = XmlLocation.init) @safeParses and validates an XML `Name`.fn
XmlQName parseXmlQName(const string value, const XmlLocation location = XmlLocation.init) @safeParses and validates an XML QName.