code: public function toNode(DOMDocument $document = null)
      {
          if (null === $document) {
              $document = new DOMDocument();
          }
  
          $node = $document->createElement('AccessPointSearch');
  
          if ($this->getAccessPointStatus()) {
              $node->appendChild($document->createElement('AccessPointStatus', $this->getAccessPointStatus()));
          }
  
          if ($this->getPublicAccessPointId()) {
              $node->appendChild($document->createElement('PublicAccessPointID', $this->getPublicAccessPointId()));
          }
  
          if ($this->getAccountNumber()) {
              $node->appendChild($document->createElement('AccountNumber', $this->getAccountNumber()));
          }
  
          return $node;
      }
docs: @param null|DOMDocument $document
  
  @return DOMElement