Lines Matching refs:child
25 $child = $root->first_child();
28 while ($child) {
29 if ($child->node_type() == XML_ELEMENT_NODE) {
30 $size = max($size, strlen($child->get_content()));
31 if (empty($content) || $child->has_attribute('selected')) {
32 $content = preg_replace('/\s/',' ',$child->get_content());
33 $value = trim($child->get_content());
36 if ($child->has_attribute('value')) {
37 $options[] = array($child->get_attribute('value'),
38 $child->get_content());
40 $options[] = array($child->get_content(),
41 $child->get_content());
44 $child = $child->next_sibling();