ң

DomDocument->dump_file

(unknown)

DomDocument->dump_file - XML .

string DomDocument->dump_file (string filename [, bool compressionmode [, bool format]])

XML- dom-. dom- , . format , , . filename, - .

1. HTML-
<?php $doc = domxml_new_doc("1.0"); $root = $doc->create_element("HTML"); $root = $doc->append_child($root); $head = $doc->create_element("HEAD"); $head = $root->append_child($head); $title = $doc->create_element("TITLE"); $title = $head->append_child($title); $text = $doc->create_text_node("This is the title"); $text = $title->append_child($text); $doc->dump_file("/tmp/test.xml", false, true); ?>

. DomDocument_dump_mem() , DomDocument_html_dump_mem() .


ң
DomDocument->document_element DomDocument->dump_mem