XMLNames
classin packageklyn.io.xml.dom
public class XMLNames:
XMLNames

XML name helpers used by the pure Klyn DOM implementation.

import klyn.io.xml.dom

print(XMLNames.sanitize("first name"))
Methods
Modifier and Type Member Description
public static localName
localName(qualifiedName as String) as String:
Returns the part after the first namespace separator.
public static prefix
prefix(qualifiedName as String) as String:
Returns the part before the first namespace separator.
public static requireQualified
requireQualified(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 requireValid
requireValid(name as String) as Void throws DOMException:
Validates an XML 1.0 Fifth Edition name, including Unicode names.
public static sanitize
sanitize(name as String) as String:
Replaces characters outside the conservative ASCII XML name alphabet with underscores.