Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using System;
- using System.Linq;
- XDocument input = XDocument.Load(path1);
- input.Element("customers").Element("customer").Element("orders").ReplaceNodes(
- from node in input.Element("customers").Element("customer").Element("orders").Elements("order")
- orderby Convert.ToInt32(node.Element("id").Value)
- select node
- );
- input.Save(outpath1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement