System\Xml\ValidateNames.cs (10)
394return new XmlException(SR.Xml_EmptyName, string.Empty);
480if (throwOnError) throw new XmlException(SR.Xdom_Empty_LocalName, string.Empty);
498if (throwOnError) throw new XmlException(SR.Xml_InvalidPIName, localName);
507if (throwOnError) throw new XmlException(SR.XmlNoNameAllowed, nodeKind.ToString());
527if (throwOnError) throw new XmlException(SR.Xml_PrefixForEmptyNs, string.Empty);
545if (throwOnError) throw new XmlException(SR.Xml_XmlPrefix, string.Empty);
552if (throwOnError) throw new XmlException(SR.Xml_XmlnsPrefix, string.Empty);
558if (throwOnError) throw new XmlException(SR.Xml_NamespaceDeclXmlXmlns, string.Empty);
568if (throwOnError) throw new XmlException(SR.Xml_InvalidPIName, CreateName(prefix, localName));
577if (throwOnError) throw new XmlException(SR.XmlNoNameAllowed, nodeKind.ToString());