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.10 domxml_children

[ Exemples avec domxml_children ]   PHP 4 >= 4.0.0

Description

array domxml_children(object doc|node )

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_children retourne tous les fils du noeud doc|node, sous forme d'un tableau de noeuds.

Dans l'exemple ci-dessous, la variable children contiendra un tableau avec les noeuds de type XML_ELEMENT. Ce noeud est l'élément TITLE.
Lire les fils d'un noeud

<?php
  $doc 
new_xmldoc("1.0");
  
$root $doc->add_root("HTML");
  
$head $root->new_child("HEAD""");
  
$head->new_child("TITLE""Hier der Titel");
  
$head->set_attribute("Language""ge");
  
$children $head->children();
?>


Chapitre précédentChapitre suivantAccueil nexen.net