You could try something like
List<XmlNodechildren = new List<XmlNode>();
foreach (XmlNode child in myNode.ChildNodes)
{
children.Add(myNode.Remove(child));
}
for (int i = children.Count - 1; i >= 0; i--)
{
myNode.AppendChild(children[i]);
}
It may not be the fastest, but it is a way. I have not tested it, but it
should be pretty close to the real thing :-)
HTH
"eg****@gmail.com" wrote:
Hi,
I have an XmlNodeList and I need to reverse it. Just like
Array.Reverse(), but it has to stay as an XmlNodeList.
Any ideas?