Function to write ptree to xml file
Leosac Configuration through Rpleth.

We should be able to set the Leosac unit IP/netmask/gateway
and switch between dhcp and static ip using Rpleth commands.

Cherry-Pick from stable-fix
fix previous cherry-picking
Merge xml/property tree help function