/**
  * @see parent::toXML()
  *
  * @return CXDSXmlDocument
  */
 function toXML()
 {
     $xml = parent::toXML();
     if ($this->contentTypeCodeDisplayName) {
         $xml->importDOMDocument($xml->documentElement, $this->contentTypeCodeDisplayName->toXML());
     }
     if ($this->codingScheme) {
         $xml->importDOMDocument($xml->documentElement, $this->codingScheme->toXML());
     }
     return $xml;
 }
Exemple #2
0
 /**
  * @see parent::toXML()
  *
  * @return CXDSXmlDocument
  */
 function toXML()
 {
     $xml = parent::toXML();
     $base_xml = $xml->documentElement;
     if ($this->name) {
         $xml->importDOMDocument($base_xml, $this->name->toXML());
     }
     if ($this->codingScheme) {
         $xml->importDOMDocument($base_xml, $this->codingScheme->toXML());
     }
     return $xml;
 }
 /**
  * @see parent::toXML()
  *
  * @return CXDSXmlDocument
  */
 function toXML()
 {
     $xml = parent::toXML();
     $base_xml = $xml->documentElement;
     if ($this->authorInstitution) {
         $xml->importDOMDocument($base_xml, $this->authorInstitution->toXML());
     }
     if ($this->authorPerson) {
         $xml->importDOMDocument($base_xml, $this->authorPerson->toXML());
     }
     foreach ($this->authorRole as $_authorRole) {
         $xml->importDOMDocument($base_xml, $_authorRole->toXML());
     }
     if ($this->authorSpecialty) {
         $xml->importDOMDocument($base_xml, $this->authorSpecialty->toXML());
     }
     return $xml;
 }
 /**
  * @see parent::toXML()
  */
 function toXML()
 {
     return parent::toXML(true);
 }