Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CheckAttributes()

void System.Xml.XmlBaseReader.CheckAttributes ( XmlAttributeNode[] attributeNodes,
int attributeCount )
inlineprivateinherited

Definition at line 1887 of file XmlBaseReader.cs.

1888 {
1889 if (_attributeSorter == null)
1890 {
1891 _attributeSorter = new AttributeSorter();
1892 }
1893 if (!_attributeSorter.Sort(attributeNodes, attributeCount))
1894 {
1896 if (attributeNodes[attributeIndex].QNameType == QNameType.Xmlns)
1897 {
1898 XmlExceptionHelper.ThrowDuplicateXmlnsAttribute(this, attributeNodes[attributeIndex].Namespace.Prefix.GetString(), "http://www.w3.org/2000/xmlns/");
1899 }
1900 else
1901 {
1902 XmlExceptionHelper.ThrowDuplicateAttribute(this, attributeNodes[attributeIndex].Prefix.GetString(), attributeNodes[attributeIndex2].Prefix.GetString(), attributeNodes[attributeIndex].LocalName.GetString(), attributeNodes[attributeIndex].Namespace.Uri.GetString());
1903 }
1904 }
1905 }
bool Sort(XmlAttributeNode[] attributeNodes, int attributeCount)
void GetIndeces(out int attributeIndex1, out int attributeIndex2)
AttributeSorter _attributeSorter

References System.Xml.XmlBaseReader._attributeSorter, System.Xml.Dictionary, System.Xml.XmlBaseReader.AttributeSorter.GetIndeces(), System.Xml.PrefixHandle.GetString(), System.Xml.XmlBaseReader.Namespace.Prefix, System.Xml.XmlBaseReader.Prefix, System.Xml.XmlBaseReader.AttributeSorter.Sort(), System.Xml.XmlExceptionHelper.ThrowDuplicateAttribute(), and System.Xml.XmlExceptionHelper.ThrowDuplicateXmlnsAttribute().

Referenced by System.Xml.XmlBaseReader.ProcessAttributes().