Need LINQ query to read XML file.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black Hi all. In this is XML file I have to get all the Source dlls in a list.<br/>
I am trying with below query.
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black Dim parts As List(Of XElement) = (From assemblyParts In deploymentRoot.Elements().Elements() Select assemblyParts).ToList() <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black <br/>
but<span> <span style="font-family:"Verdana","sans-serif" patrs <span> contains count.It is not a list.
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black How can I do this?
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black Below is the XML document.<br/>
<br/>
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" RuntimeVersion="4.0.50826.0 <Deployment.OutOfBrowserSettings> <OutOfBrowserSettings ShortName="WebPortalUI Application" EnableGPUAcceleration="False"
ShowInstallMenuItem="True <OutOfBrowserSettings.Blurb>WebPortalUI Application on your desktop; at home, at work or on the go.</OutOfBrowserSettings.Blurb> <OutOfBrowserSettings.WindowSettings>
<WindowSettings Title="WebPortalUI Application" Height="400" Width="928" /> </OutOfBrowserSettings.WindowSettings> <OutOfBrowserSettings.Icons /> </OutOfBrowserSettings>
</Deployment.OutOfBrowserSettings><br/>
<br/>
<span style="font-family:"Verdana","sans-serif" <Deployment.Parts>
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black <AssemblyPart x:Name="WebPortalUI" Source="WebPortalUI.dll" /> <AssemblyPart x:Name="System.ComponentModel.Composition"
Source="System.ComponentModel.Composition.dll" /> <AssemblyPart x:Name="System.ComponentModel.Composition.Initialization" Source="System.ComponentModel.Composition.Initialization.dll" /> <AssemblyPart x:Name="System.ComponentModel.DataAnnotations"
Source="System.ComponentModel.DataAnnotations.dll" /> <AssemblyPart x:Name="System.Windows.Controls.Data.Input" Source="System.Windows.Controls.Data.Input.dll" /> <AssemblyPart x:Name="System.Windows.Controls.Navigation"
Source="System.Windows.Controls.Navigation.dll" /> <AssemblyPart x:Name="System.Xml.Linq" Source="System.Xml.Linq.dll" /> <AssemblyPart x:Name="System.Xml.Serialization" Source="System.Xml.Serialization.dll" />
<AssemblyPart x:Name="Telerik.Windows.Controls" Source="Telerik.Windows.Controls.dll" /> <AssemblyPart x:Name="Telerik.Windows.Controls.Docking" Source="Telerik.Windows.Controls.Docking.dll" /> <AssemblyPart
x:Name="Telerik.Windows.Controls.GridView" Source="Telerik.Windows.Controls.GridView.dll" /> <AssemblyPart x:Name="Telerik.Windows.Controls.Input" Source="Telerik.Windows.Controls.Input.dll" /> <AssemblyPart x:Name="Telerik.Windows.Controls.Navigation"
Source="Telerik.Windows.Controls.Navigation.dll" /> <AssemblyPart x:Name="Telerik.Windows.Data" Source="Telerik.Windows.Data.dll" /> <AssemblyPart x:Name="ViewModel" Source="ViewModel.dll" /> <AssemblyPart
x:Name="System.Windows.Data" Source="System.Windows.Data.dll" /> <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black </Deployment.Parts> <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black <br/>
<br/>
</Deployment>
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black
<p style="background:white <span style="font-size:7.5pt; font-family:"Verdana","sans-serif"; color:black <br/>
Regards,NJ

View the full article
 
Back
Top