public function setQueryParametersParticipantObjectDetail() { $participant_object_detail = $this->msg_xml->addElement($this->query_parameters, 'ParticipantObjectDetail'); $MSH = $this->hl7_xml->queryNode("MSH", null, $foo, true); $MSH_10 = $this->hl7_xml->queryTextNode("MSH.10", $MSH); $this->msg_xml->addAttribute($participant_object_detail, 'type', 'MSH-10'); $this->msg_xml->addAttribute($participant_object_detail, 'value', base64_encode($MSH_10)); $this->query_parameters_participant_object_detail = $participant_object_detail; }