This project has moved. For the latest updates, please go here.

XmlAttributeAttribute by value ?

Jan 24, 2010 at 11:23 PM

Hello

I have this piece of code from the RSSToolkit modified by me:

        [XmlElementAttribute("link")]
        [XmlAttributeAttribute(AttributeName = "rel")]
        public string Link
        {
            get
            {
                return _link;
            }

            set
            {
                _link = value;
            }
        }

However the XML (rss feed to be more precise) has more than 1 link element, and each of this elements has the rel attribute. What I want is basically get the element with the rel attribute set to a specific value. 

Thanks for your time