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

◆ OnNamespaceDecl()

void System.Xml.XmlTextReaderImpl.OnNamespaceDecl ( NodeData attr)
inlineprivate

Definition at line 4831 of file XmlTextReaderImpl.cs.

4832 {
4834 {
4835 string text = _nameTable.Add(attr.StringValue);
4836 if (text.Length == 0)
4837 {
4838 Throw(System.SR.Xml_BadNamespaceDecl, attr.lineInfo2.lineNo, attr.lineInfo2.linePos - 1);
4839 }
4840 AddNamespace(attr.localName, text, attr);
4841 }
4842 }
static string Xml_BadNamespaceDecl
Definition SR.cs:134
Definition SR.cs:7
string Add(char[] array, int offset, int length)
void AddNamespace(string prefix, string uri, NodeData attr)
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._nameTable, System.Xml.XmlTextReaderImpl._supportNamespaces, System.Xml.XmlNameTable.Add(), System.Xml.XmlTextReaderImpl.AddNamespace(), System.text, System.Xml.XmlTextReaderImpl.Throw(), and System.SR.Xml_BadNamespaceDecl.

Referenced by System.Xml.XmlTextReaderImpl.AddDefaultAttributeInternal(), System.Xml.XmlTextReaderImpl.ParseAttributes(), and System.Xml.XmlTextReaderImpl.ParseAttributesAsync().