EDN Admin
Well-known member
i made myself comfortable with linq to xml and then an asp.net control xmldatasaurce control needs an xpath expression.
but the functionality is the same why two methods ? in the next example list1 = list2
what can xpath what linq cant ?
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Dim id <span style="color:Blue; As XElement = Global_asax.Fi.dixdoc.Root
<span style="color:Blue; Dim list2 <span style="color:Blue; As IEnumerable(Of XElement) = id.Elements()
<span style="color:Blue; Dim list1 = (<span style="color:Blue; From el <span style="color:Blue; In Global_asax.Fi.dixdoc.<InstalledDevices>.Elements <span style="color:Blue; Select el)
[/code]
<hr class="sig nattelip
View the full article
but the functionality is the same why two methods ? in the next example list1 = list2
what can xpath what linq cant ?
<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Dim id <span style="color:Blue; As XElement = Global_asax.Fi.dixdoc.Root
<span style="color:Blue; Dim list2 <span style="color:Blue; As IEnumerable(Of XElement) = id.Elements()
<span style="color:Blue; Dim list1 = (<span style="color:Blue; From el <span style="color:Blue; In Global_asax.Fi.dixdoc.<InstalledDevices>.Elements <span style="color:Blue; Select el)
[/code]
<hr class="sig nattelip
View the full article