klyn.io.xml.dom.XMLNames.requireValid
method
public static requireValid(name as String) as Void throws DOMException:
Description

Throws a DOMException when the name is not a valid conservative XML name.

Parameters
  • name Name to validate.
Throws
  • DOMException if the name is empty or needs sanitization.
Example
XMLNames.requireValid("item")