public function AbstractEntry::saveXml in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Reader/AbstractEntry.php \Zend\Feed\Reader\AbstractEntry::saveXml()
- 8.0 vendor/zendframework/zend-feed/src/Reader/Entry/AbstractEntry.php \Zend\Feed\Reader\Entry\AbstractEntry::saveXml()
Same name and namespace in other branches
- 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
Namespace
Zend\Feed\ReaderCode
public function saveXml() {
$dom = new DOMDocument('1.0', $this
->getEncoding());
$entry = $dom
->importNode($this
->getElement(), true);
$dom
->appendChild($entry);
return $dom
->saveXml();
}