Example #1
0
 /**
  * Gets the DOM document of this element
  * @return DOMDocument
  */
 public function toDom()
 {
     $dom = new DOMDocument('1.0', 'utf-8');
     $changeDescription = $dom->createElementNS(Client::SCHEMA_TYPES, $this->name);
     $fieldURIDom = $this->FieldURI->toDom();
     $fieldURIElement = $dom->importNode($fieldURIDom->documentElement, true);
     $changeDescription->appendChild($fieldURIElement);
     $itemDom = $this->item->toDom();
     $itemElement = $dom->importNode($itemDom->documentElement, true);
     $changeDescription->appendChild($itemElement);
     $dom->appendChild($changeDescription);
     return $dom;
 }