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

◆ GetAttribute() [3/3]

string System.Xml.XmlNodeReaderNavigator.GetAttribute ( string name,
string ns )
inline

Definition at line 509 of file XmlNodeReaderNavigator.cs.

510 {
512 {
513 return null;
514 }
515 return _curNode.NodeType switch
516 {
517 XmlNodeType.Element => GetAttributeFromElement((XmlElement)_curNode, name, ns),
520 XmlNodeType.DocumentType => (ns.Length == 0) ? GetDocumentTypeAttr((XmlDocumentType)_curNode, name) : null,
521 _ => null,
522 };
523 }
string GetAttributeFromElement(XmlElement elem, string name)
string GetDocumentTypeAttr(XmlDocumentType docType, string name)
string GetDeclarationAttr(XmlDeclaration decl, string name)

References System.Xml.XmlNodeReaderNavigator._bCreatedOnAttribute, System.Xml.XmlNodeReaderNavigator._curNode, System.Xml.XmlNodeReaderNavigator._elemNode, System.Xml.Dictionary, System.Xml.XmlNodeReaderNavigator.GetAttributeFromElement(), System.Xml.XmlNodeReaderNavigator.GetDeclarationAttr(), and System.Xml.XmlNodeReaderNavigator.GetDocumentTypeAttr().