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

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

iphone - Smoothing a rounded stroke in Core Graphics -

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