SommaireTelecharger la documentationChapitre suivantChapitre precedent  

  .: News :.: Edito :.: Scripts :.: Forum :.: Erreurs :.: Jobs :. 
 
Sommaire

DOM XML

xmldoc
xmldocfile
xmltree
domxml_root
domxml_add_root
domxml_dumpmem
domxml_attributes
domxml_get_attribute
domxml_set_attribute
domxml_children
domxml_new_child
domxml_new_xmldoc
xpath_new_context
xpath_eval

6.25.5 domxml_add_root

[ Exemples avec domxml_add_root ]   PHP 4 >= 4.0.0

Description

resource domxml_add_root(resource doc ,string name )

Attention

Cette fonction est EXPERIMENTALE . Cela signifie que le comportement de cette fonction, son nom et concrètement, TOUT ce qui est documenté ici peut changer dans un futur proche, SANS PREAVIS! Soyez-en conscient, et utilisez cette fonction à vos risques et périls.

domxml_add_root ajoute la racine name au document doc.

Création d'une en-tête HTML simple

<?php
  $root 
$doc->add_root("HTML");
  
$head $root->new_child("HEAD""");
  
$head->new_child("TITLE""Ici, le titre");
  echo 
$doc->dumpmem();
?>


Chapitre précédentChapitre suivantAccueil nexen.net