Get XmlAttribute Value - CSharp System.Xml

CSharp examples for System.Xml:XML Attribute

Description

Get XmlAttribute Value

Demo Code


using System.Xml;
using System.Web;
using System.Linq;
using System.Collections.Generic;
using System;// w  w w.ja v  a  2 s  .c  om

public class Main{
        public static string GetValue(this XmlAttribute xAttr)
        {
            return xAttr != null ? xAttr.Value : "";
        }
}

Related Tutorials