How to write linq query for xml in vb.net? -


I want to write a link query for my XML, in fact I do not know it. I have written some code here.

  from slow query = _ MyPermissionXml.Elements ("menuNode"). Descendants ("menuNode") _ where p.Attributes ("title"). ToString = "Company"  

Where, I think it's wrong to represent a feature here?

I think if you change the attribute and toString the value and you should be there

  MyPermissionXml.Elements ("menuNode") from the slow query = _p. Descendants ("menuNode") _ where p.Attribute ("title"). Value = "Company"  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -