Simplified the writing of the xml element ipaddress