Add Function For Replacing XML Config Nodes

Added new functionality to allow dynamically removing XML nodes
from the configuration file; previously, it was only possible to
add new nodes, not replace existing values. This code will remove
all nodes matching the path given, then adds a new node with the
provided value.