Zend dom query and saveXML [Solved]?

Long ago in one of my projects using zend dom query. Task appear in the result set that you want to keep tags, so that nodeValue is not suitable. Googled that native work with the DOM in PHP you need to use saveXML(), is it possible to save a sample with the tags using zend dom query?
October 8th 19 at 00:14
1 answer
October 8th 19 at 00:16
$dom = new Zend_Dom_Query($html);
$rowDOM = $dom->query(XPATH)->current();
$rowHTML = simplexml_import_dom($row)->asXML();
$rowHTML = simplexml_import_dom($rowDOM)->asXML();

The final version (for UTF-8):
$rowHTML = mb_convert_encoding(simplexml_import_dom($rowDOM)->asXML(),'HTML-ENTITIES', 'utf-8');
- Antwon.Hayes commented on October 8th 19 at 00:19
With many grateful! - Zachariah42 commented on October 8th 19 at 00:22

Find more questions by tags ParsingZend FrameworkPHP