title: How to connect XML API into PHP Code
body: <p>I'm new developer, I need to connect XML API Hotel, In the documentation is mentioned about Startup guide, first we need to add customer login and user, there're two steps at first, but I don't know how to use them, and how to connect <strong>Main XML URL</strong> into PHP using the password login info like below:</p>
  
  <p><strong>General Request / Request Format:</strong></p>
  
  <pre><code>    &lt;customer&gt;  
      &lt;username&gt;username&lt;/username&gt;  
      &lt;password&gt;md5(password)&lt;/password&gt;  
      &lt;id&gt;company code&lt;/id&gt;  
      &lt;source&gt;1&lt;/source&gt;  
      &lt;request command="getallcities"&gt;  
          &lt;return&gt;  
              &lt;filters&gt;  
                  &lt;countryCode&gt;&lt;/countryCode&gt;  
                  &lt;countryName&gt;&lt;/countryName&gt;  
              &lt;/filters&gt;  
              &lt;fields&gt;  
                  &lt;field&gt;countryName&lt;/field&gt;  
                  &lt;field&gt;countryCode&lt;/field&gt;  
              &lt;/fields&gt;  
          &lt;/return&gt;  
      &lt;/request&gt;  
  &lt;/customer&gt; 
  </code></pre>
  
  <p><strong>General Response / Response Format:</strong></p>
  
  <pre><code>    &lt;result command=" " date="" ip=""&gt;  
      &lt;request&gt;  
          &lt;error&gt;  
              &lt;class&gt;&lt;/class&gt;  
              &lt;code&gt;error code&lt;/code&gt;  
              &lt;details&gt;&lt;/details&gt;  
              &lt;extraDetails&gt;&lt;/extraDetails&gt;  
              &lt;postXml&gt;&lt;/postXml&gt;  
          &lt;/error&gt;  
          &lt;successful&gt;FALSE&lt;/successful&gt;  
      &lt;/request&gt;  
  &lt;/result&gt;  
  </code></pre>
  
  <p><strong>General Request XSD</strong></p>
  
  <p>getallcities.xsd</p>
  
  <p>I highly appreciate of someone will guide me how to use them and how to connect PHP into Main XML Url. </p>
  
  <p>I highly appreciate your help in this issue.</p>
  
  <p>Thanks in advance</p>