DOMDocument->saveHTML()
    (no version information, might be only in CVS)
DOMDocument->saveHTML() -- 
   内部のドキュメントを HTML 形式の文字列として出力する
  
説明
class 
DOMDocument { 
string 
saveHTML ( void  )
}
   DOM 表現から HTML ドキュメントを作成します。この関数は、通常は以下の例のように
   DOM ドキュメントを新しく作成した後にコールされます。
  
返り値
   HTML、あるいはエラーが発生した場合は FALSE を返します。
  
例
   
例 1. HTML ツリーを文字列に保存する 
<?php
  $doc = new DOMDocument('1.0');
  $root = $doc->createElement('html'); $root = $doc->appendChild($root);
  $head = $doc->createElement('head'); $head = $root->appendChild($head);
  $title = $doc->createElement('title'); $title = $head->appendChild($title);
  $text = $doc->createTextNode('This is the title'); $text = $title->appendChild($text);
  echo $doc->saveHTML();
  ?>
 |  
  |