def swapPOM(dst, src=None):
    if src:
        return dst.replace(src)
    else:
        return dst.detach()
Replace dest in a DOM tree with source, returning detached tree (dest).
dataset/ETHPy150Open kdart/pycopia/XML/pycopia/XML/POM.py/swapPOM