You are here

public function AbstractEntry::saveXml in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::saveXml()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::saveXml()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::saveXml()

Get entry as xml

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php, line 119

Class

AbstractEntry

Namespace

Zend\Feed\Reader

Code

public function saveXml() {
  $dom = new DOMDocument('1.0', $this
    ->getEncoding());
  $entry = $dom
    ->importNode($this
    ->getElement(), true);
  $dom
    ->appendChild($entry);
  return $dom
    ->saveXml();
}