System.Xml.XmlNodeReaderNavigator.GetAttribute C# (CSharp) Method

GetAttribute() public method

public GetAttribute ( String name, String ns ) : String
name String
ns String
return String
            public String GetAttribute( String name, String ns ) {
                if( this.bCreatedOnAttribute )
                    return null;
                switch ( curNode.NodeType ) {
                    case XmlNodeType.Element:
                        return GetAttributeFromElement((XmlElement)curNode, name, ns);
                    case XmlNodeType.Attribute :
                        return GetAttributeFromElement((XmlElement)elemNode, name, ns);
                    case XmlNodeType.XmlDeclaration:
                        return (ns.Length == 0) ? GetDeclarationAttr( (XmlDeclaration)curNode, name ) : null;
                    case XmlNodeType.DocumentType:
                        return (ns.Length == 0) ? GetDocumentTypeAttr( (XmlDocumentType)curNode, name ) : null;
                }
                return null;
            }

Same methods

XmlNodeReaderNavigator::GetAttribute ( String name ) : String
XmlNodeReaderNavigator::GetAttribute ( int attributeIndex ) : String