src/Ups.php
protected function createAccess()
    {
        $xml = new DOMDocument();
        $xml->formatOutput = true;

        // Create the AccessRequest element
        $accessRequest = $xml->appendChild($xml->createElement('AccessRequest'));
        $accessRequest->setAttribute('xml:lang', 'en-US');

        $accessRequest->appendChild($xml->createElement('AccessLicenseNumber', $this->accessKey));
        $accessRequest->appendChild($xml->createElement('UserId', $this->userId));
        
        $p = $accessRequest->appendChild($xml->createElement('Password'));
        $p->appendChild($xml->createTextNode($this->password));

        return $xml->saveXML();
    }
protected function createAccess()
    {
        $xml = new DOMDocument();
        $xml->formatOutput = true;

        // Create the AccessRequest element
        $accessRequest = $xml->appendChild($xml->createElement('AccessRequest'));
        $accessRequest->setAttribute('xml:lang', 'en-US');

        $accessRequest->appendChild($xml->createElement('AccessLicenseNumber', $this->accessKey));
        $accessRequest->appendChild($xml->createElement('UserId', $this->userId));
        
        $p = $accessRequest->appendChild($xml->createElement('Password'));
        $p->appendChild($xml->createTextNode($this->password));

        return $xml->saveXML();
    }
Create the access request.

@return string