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

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -

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

php - What is the best way to get the URL of a 404'd file after redirect? -