Skip to content

Commit

Permalink
DataForge fixes for 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-dolkens committed Mar 20, 2016
1 parent fc43624 commit 2061d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions HoloXPLOR.DataForge/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ public static XmlElement Rename(this XmlElement element, String name)
{
var buffer = element.OwnerDocument.CreateElement(name);

foreach (XmlNode node in element.ChildNodes)
while (element.ChildNodes.Count > 0)
{
buffer.AppendChild(node);
buffer.AppendChild(element.ChildNodes[0]);
}

while (element.Attributes.Count > 0)
Expand Down

0 comments on commit 2061d9f

Please sign in to comment.