GPCore - The Gibphone API

Xml.Rename Method 

This method renames the given elem.

[Visual Basic]
Public Sub Rename( _
   ByRef XmlElement& As XmlElement@, _
   ByVal String As String _
)
[C#]
public void Rename(
   ref XmlElement& elem,
   String name
);

Parameters

elem
The element to rename
name
Its new name

Remarks

.NET does not support renaming an element so in order to do this, I create a new element with the new name and copy over all of its Attributes and child nodes.

See Also

Xml Class | GPCore Namespace