Need LINQ query to read XML file.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<span style="color:#44525e; font-family:Arial,Helvetica,sans-serif; font-size:12px; line-height:16px
<p style=" 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=" <strong style=" Dim parts As List(Of XElement) = (From assemblyParts In deploymentRoot.Elements().Elements() Select assemblyParts).ToList() <br/>
but <strong style=" patrs contains count.It is not a list.
<p style=" How can I do this?
<p style="
<p style=" 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/>
<strong style=" <Deployment.Parts>
<p style=" <strong style=" <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"
/>
<p style=" <strong style=" </Deployment.Parts> <br/>
<br/>
</Deployment>
<p style="
<p style=" <br/>
Regards,NJ


View the full article
 
Back
Top