protected function KML::childElements in geoPHP 8
Same name and namespace in other branches
- 7 geoPHP/lib/adapters/KML.class.php \KML::childElements()
2 calls to KML::childElements()
- KML::parsePolygon in geoPHP/
lib/ adapters/ KML.class.php - KML::_extractCoordinates in geoPHP/
lib/ adapters/ KML.class.php
File
- geoPHP/
lib/ adapters/ KML.class.php, line 104
Class
- KML
- PHP Geometry/KML encoder/decoder
Code
protected function childElements($xml, $nodename = '') {
$children = array();
if ($xml->childNodes) {
foreach ($xml->childNodes as $child) {
if ($child->nodeName == $nodename) {
$children[] = $child;
}
}
}
return $children;
}