public class XMLNames:
XML name helpers used by the pure Klyn DOM implementation.
import klyn.io.xml.dom
print(XMLNames.sanitize("first name"))| Modifier and Type | Member | Description |
|---|---|---|
| public static | localName | Returns the part after the first namespace separator. |
| public static | prefix | Returns the part before the first namespace separator. |
| public static | requireQualifiedrequireQualified(namespaceURI as String, qualifiedName as String, attribute as Boolean) as Void throws DOMException: |
Validates a namespace-aware DOM name before any tree mutation. |
| public static | requireValidrequireValid(name as String) as Void throws DOMException: |
Validates an XML 1.0 Fifth Edition name, including Unicode names. |
| public static | sanitize | Replaces characters outside the conservative ASCII XML name alphabet with underscores. |