Here's a NCName definition (element and attribute names) from http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-
NCNameChar An XML Name, minus the ":"
NCName ::= (Letter | '') (NCNameChar)*
NCNameChar ::= Letter | Digit | '.' | '-' | '' | CombiningChar | Extender
Here's a NCName definition (element and attribute names) from http://www.w3.org/TR/1999/REC-xml-names-19990114/#NT- NCNameChar An XML Name, minus the ":" NCName ::= (Letter | '') (NCNameChar)* NCNameChar ::= Letter | Digit | '.' | '-' | '' | CombiningChar | Extender