Fix if inserting at first level of the xml file.
Add option to remove trailing whitespace when removing a node.
Use the new general way of loading xml.