PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DomNode->node_type> <DomNode->next_sibling
Last updated: Fri, 05 Sep 2008

view this page in

DomNode->node_name

(No version information available, might be only in CVS)

DomNode->node_name Retourne le nom du noeud

Description

string DomNode->node_name ( void )

DomNode->node_name() retourne le nom du noeud. Le nom a différentes signification suivant le type de noeud, tel que présenté ci-dessous :

Signification de la valeur
Type Signification
DomAttribute Valeur de l'attribut
DomAttribute  
DomCDataSection #cdata-section
DomComment #comment
DomDocument #document
DomDocumentType Nom du type de document
DomElement Nom de la balise
DomEntity Nom de l'entité
DomEntityReference Nom de la référence de l'entité
DomNotation Nom de la notation
DomProcessingInstruction target
DomText #text



add a note add a note User Contributed Notes
DomNode->node_name
zombie)(at)(localm)(dot)(.org
30-Dec-2002 07:33
Loop through children making sure that the children are not text nodes.
<pre>

$moduleDoc = domxml_open_file("main_module_defs.xml");
$moduleDefinitionXPath = xpath_new_context($moduleDoc);
$dConvsNodeSet = xpath_eval($moduleDefinitionXPath, "//modules/module[@name='search']/dConvs");
$children = $dConvsNodeSet->nodeset[0]-> child_nodes();
$dTotal = count($children);
for ($i=0;$i<$dTotal;$i++){
    $curNode = $children[$i];
    if($curNode->node_name() != "#text"){
        echo "This are probably TextNodes...";    }
}
</pre>

--
http://artattack.to

DomNode->node_type> <DomNode->next_sibling
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites