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
Post a Comment