checkNoParent static method
Ensure that node
has no parent.
Implementation
static void checkNoParent(XmlParentable node) {
if (node.parent != null) {
throw XmlParentException('Node already has a parent, copy or remove it first: $node');
}
}