protected function KML::childElements in geoPHP 7
Same name and namespace in other branches
- 8 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 103
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;
}