Get Attribute Value As QName from XmlReader - CSharp System.Xml

CSharp examples for System.Xml:XML Attribute

Description

Get Attribute Value As QName from XmlReader

Demo Code

// The .NET Foundation licenses this file to you under the MIT license.
using System.Xml;
using System.Text;

public class Main{
        internal static XmlQualifiedName GetAttributeValueAsQName(XmlReader reader, string attributeName)
        {/* w ww  .j av a 2 s  . co  m*/
            string qname = reader.GetAttribute(attributeName);
            if (qname == null)
            {
                return null;
            }
            return GetValueAsQName(reader, qname);
        }
}

Related Tutorials