<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd">
  <command>
    <create>
      <contact:create xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
                      xsi:schemaLocation="urn:ietf:params:xml:ns:contact-1.0 contact-1.0.xsd">
        <contact:id>{$id}</contact:id>
        <contact:postalInfo type="loc">
          <contact:name>{$name}</contact:name>
          <contact:org>{$org}</contact:org>
          <contact:addr>
           <contact:street>{$street}</contact:street>
           {if $street2 ne ""}<contact:street>{$street2}</contact:street>{/if}
           {if $street3 ne ""}<contact:street>{$street3}</contact:street>{/if}
           <contact:city>{$city}</contact:city>
           <contact:sp>{$sp}</contact:sp>
           <contact:pc>{$pc}</contact:pc>
           <contact:cc>{$cc}</contact:cc>
          </contact:addr>
        </contact:postalInfo>
        <contact:voice>{$voice}</contact:voice>
        {if $fax ne ""}<contact:fax>{$fax}</contact:fax>{/if}
        <contact:email>{$email}</contact:email>
        <contact:authInfo>
          <contact:pw>{$authinfo}</contact:pw>
        </contact:authInfo>
      </contact:create>
    </create>
    <extension>
      <extcon:create xmlns:extcon="http://www.nic.it/ITNIC-EPP/extcon-1.0"
                     xsi:schemaLocation="http://www.nic.it/ITNIC-EPP/extcon-1.0 extcon-1.0.xsd">
        <extcon:consentForPublishing>{$consentForPublishing}</extcon:consentForPublishing>
        {if $entityType ne 0}
        <extcon:registrant>
          <extcon:nationalityCode>{$nationalityCode}</extcon:nationalityCode>
          <extcon:entityType>{$entityType}</extcon:entityType>
          <extcon:regCode>{$regCode}</extcon:regCode>
          {if $schoolCode ne ""}
          <extcon:schoolCode>{$schoolCode}</extcon:schoolCode>
          {/if}
        </extcon:registrant>
        {/if}
      </extcon:create>
    </extension>
    <clTRID>{$clTRID}</clTRID>
  </command>
</epp>
