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.