Checks the name is a valid xml element name
string $name:
Boolean
protected final function isElementNameValid($name) { return $name && false === strpos($name, ' ') && preg_match('#^[\\pL_][\\pL0-9._-]*$#ui', $name); }