replace method
Replace this node with other
.
Implementation
void replace(XmlNode other) {
final siblings = this.siblings;
for (var i = 0; i < siblings.length; i++) {
if (identical(siblings[i], this)) {
siblings[i] = other;
break;
}
}
}