<webspace>
    <add>
        <gen_setup>
            <name><?php echo $domain; ?></name>
            <owner-id><?php echo $ownerId; ?></owner-id>
            <htype><?php echo $htype; ?></htype>
            <status><?php echo $status; ?></status>
        </gen_setup>
        <hosting>
            <vrt_hst>
                <property>
                    <name>ftp_login</name>
                    <value><?php echo $username; ?></value>
                </property>
                <property>
                    <name>ftp_password</name>
                    <value><?php echo $password; ?></value>
                </property>
                <?php if (!empty($ipv4Address)): ?>
                    <ip_address><?php echo $ipv4Address; ?></ip_address>
                <?php endif; ?>
                <?php if (!empty($ipv6Address)): ?>
                    <ip_address><?php echo $ipv6Address; ?></ip_address>
                <?php endif; ?>
            </vrt_hst>
        </hosting>
        <prefs>
            <www>true</www>
        </prefs>
        <plan-name><?php echo $planName; ?></plan-name>
    </add>
</webspace>