Lines Matching defs:node
154 * @param DOMElement $node
157 protected function parsePoint($node)
159 $lat = $node->attributes->getNamedItem("lat")->nodeValue;
160 $lon = $node->attributes->getNamedItem("lon")->nodeValue;
162 $ele = $node->getElementsByTagName('ele');
167 $point->setData($this->parseNodeProperties($node, $this->gpxTypes->get($node->nodeName . 'Type')));
168 if ($node->nodeName === 'rtept' && $this->parseGarminRpt) {
169 foreach ($this->xpath->query('.//gpx:extensions/gpxx:RoutePointExtension/gpxx:rpt', $node) as $element) {
261 * @param \DOMNode $node
265 protected static function parseNodeProperties($node, $tagList = null)
267 if ($node->nodeType === XML_TEXT_NODE) {
268 return $node->nodeValue;
271 foreach ($node->childNodes as $childNode) {
275 if ($node->firstChild->nodeName == $node->lastChild->nodeName && $node->childNodes->length > 1) {
287 if ($node->hasAttributes()) {
289 // As of the GPX specification text node cannot have attributes, thus this never happens
293 foreach ($node->attributes as $attribute) {
372 $node = $indent . "<" . $this->nss . $tag . " lat=\"" . $geom->getY() . "\" lon=\"" . $geom->getX() . "\">\n";
376 $node .= self::processGeometryData($geom, $this->gpxTypes->get($tag . 'Type'), $indent . "\t") .
381 return $node;