locked
XDocument help needed RRS feed

  • Question

  • hello

    see the code below I want to know weather data tag is contain or not how can it do that  OR can i get the count or AXele 

     

      IEnumerable<XElement> AXele = xelement.Descendants("data");


    It's Me
    Tuesday, May 31, 2011 11:52 AM

Answers

  • You can check if there is are any elements matching by comparing the count
    AXele.Count() > 0
    

    Please mark this as answer or vote as helpful if it solved your problem
    • Marked as answer by It_s Meee Tuesday, May 31, 2011 1:16 PM
    Tuesday, May 31, 2011 12:42 PM