Can I save a Xelement querierd result?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi all,

I am using Xelement to read an xml, then query it and order it. I would like to save it as the ordered version. But it doesnt seam to have a save option, can I save a Xelement querierd result?
something like this??

<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Dim song <span style="color:Blue; As XElement
song = XElement.Load(<span style="color:#A31515; "C:song.xml")

<span style="color:Blue; Dim <span style="color:Blue; order <span style="color:Blue; As IEnumerable(Of XElement) = _
<span style="color:Blue; From El <span style="color:Blue; In song.<Song> _
<span style="color:Blue; Select El _
<span style="color:Blue; Order <span style="color:Blue; By El.<Info>.<Artist>.Value

<span style="color:Green; order.Save("C:song.xml")
[/code]
<hr class="sig Currently working on my first VB Project - A music Player - until i am old enough to take programing at school :) Please be kind as I am only learning and I learn best by dissecting something, rebuilding it and asking questions :)

View the full article
 
Back
Top