Need to edge out the competition for your dream job? Train for certifications today.
'' Load the XDocument into memory
Dim xdoc = XDocument.Load("C:\Working Directory\Reorder.xml")
'' Sort the original nodes numerically
Dim reordered = (From n In xdoc.Descendants("Table")
Order By Integer.Parse(n.Element("ID").Value)
'' Remove the un-sorted nodes
'' Add the sorted nodes back in.
'' Save the document
Open in new window
Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.