Gold Vision Communications / USA
 GOLDVISION.COM
Serving the Multimedia Community since 1989.
German Site | Spanish Site 

 Web Hosting

 Virtual Dedicated Servers

 Domaincheck

 Order

 Order Status

 Support

 Contact us

 Download

 Network

 Network Status

 Webdesign / Templates

 Make Payment

 Terms & Conditions

 Imprint

 Legal Notices

 Privacy Statement
  PHP / domxml_children
domxml_children

domxml_children

(PHP 4 >= 4.0.0)

domxml_children --  Returns children of a node or document

Description

array domxml_children ( object doc|node)

Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change in a future release of PHP without notice. Be warned and use this function at your own risk.

Returns all children of a node as an array of nodes.

In the following example the variable children will contain an array with one node of type XML_ELEMENT. This node is the TITLE element.

Example 1. Adding an attribute to an element

<?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();
?>


© 1998-2007 Gold Vision Communications All Rights Reserved.