xml_name(+In, 
+Encoding)Succeed if In is an atom or string that satisfies the rules 
for a valid XML element or attribute name. As with the other predicates 
in this group, if Encoding cannot represent one of the 
characters, this function fails. Character classification is based on
http://www.w3.org/TR/2006/REC-xml-20060816.