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

◆ ReadStartElement() [2/3]

virtual void System.Xml.XmlReader.ReadStartElement ( string localname,
string ns )
inlinevirtualinherited

Reimplemented in System.Xml.XmlBaseReader, System.Xml.XmlDictionaryReader.XmlWrappedReader, and System.Xml.XmlAsyncCheckReader.

Definition at line 652 of file XmlReader.cs.

653 {
654 if (MoveToContent() != XmlNodeType.Element)
655 {
656 throw new XmlException(System.SR.Xml_InvalidNodeType, NodeType.ToString(), this as IXmlLineInfo);
657 }
658 if (LocalName == localname && NamespaceURI == ns)
659 {
660 Read();
661 return;
662 }
663 throw new XmlException(System.SR.Xml_ElementNotFoundNs, new string[2] { localname, ns }, this as IXmlLineInfo);
664 }
static string Xml_ElementNotFoundNs
Definition SR.cs:102
static string Xml_InvalidNodeType
Definition SR.cs:88
Definition SR.cs:7
virtual XmlNodeType MoveToContent()
Definition XmlReader.cs:604
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.Dictionary, System.Xml.XmlReader.LocalName, System.Xml.XmlReader.MoveToContent(), System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Read(), System.SR.Xml_ElementNotFoundNs, System.SR.Xml_InvalidNodeType, and System.Xml.XmlException.