Return to Snippet

Revision: 27008
at May 19, 2010 05:19 by iroybot


Initial Code
$dom->saveXML($this->documentElement, LIBXML_NOEMPTYTAG);

Initial URL


Initial Description
the LIBXML parameter is what this snippet is about. Also this is one way to retrieve XML without having a  XML-declaration prepended <?xml>

Initial Title
DOMDocument - prevent empty tags // retrieve node without xml declaration

Initial Tags
DOM, xml

Initial Language
PHP