Refactor: libcrmcommon: Functionize replacing an XML node
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>