public function create_xml($xml)
 {
     $xml = parent::create_xml($xml);
     $xml->addChild('company-id', $this->get_company_id());
     $xml->addChild('company-name', htmlspecialchars($this->get_company_name()));
     $xml->addChild('first-name', htmlspecialchars($this->get_first_name()));
     $xml->addChild('last-name', htmlspecialchars($this->get_last_name()));
     $xml->addChild('title', htmlspecialchars($this->get_title()));
     $xml->addChild('linkedin-url', htmlspecialchars($this->get_linkedin_url()));
     $subject_datas = $xml->addChild('subject_datas');
     $subject_datas->addAttribute('type', 'array');
     foreach ($this->custom_fields as $custom_field) {
         $subject_data = $subject_datas->addChild('subject_data');
         foreach ($custom_field->get_xml_object()->children() as $child) {
             $field = $subject_data->addChild($child->getName(), htmlspecialchars($child));
             foreach ($child->attributes() as $attribute) {
                 $field->addAttribute($attribute->getName(), (string) $attribute);
             }
         }
     }
     return $xml;
 }
 public function create_xml($xml)
 {
     $xml = parent::create_xml($xml);
     $xml->name = $this->get_name();
     return $xml;
 }