private void ValidateQName( string name ) {
if ( name.Length == 0 ) {
throw new ArgumentException( Res.GetString( Res.Xml_EmptyName ) );
}
int colonPos;
int len = ValidateNames.ParseQName( name, 0, out colonPos );
if ( len != name.Length ) {
string res = ( len == 0 || ( colonPos > -1 && len == colonPos + 1 ) ) ? Res.Xml_BadStartNameChar : Res.Xml_BadNameChar;
throw new ArgumentException( Res.GetString( res, XmlException.BuildCharExceptionStr( name[len] ) ) );
}
}