Checks a variety of strings to see if they're legal for partiuclar uses in XML. as specified by XML 1.0 and Namespaces in XML.
Mostly for internal parser use